logo
  • 教程列表
  • SO官方文档
  • 使用 .gitattributes 文件
    • 自动线路结束标准化
    • 识别二进制文件
    • 禁用行结束标准化
    • 预填充 .gitattribute 模板
  1. StackOverflow 文档
  2. Git 教程
  3. 使用 .gitattributes 文件
  4. 识别二进制文件

识别二进制文件

Created: November-22, 2018

Git 非常擅长识别二进制文件,但你可以明确指定哪些文件是二进制文件。在项目根目录中创建 .gitattributes 文件,其中包含:

*.png binary

binary 是一个内置的宏属性,相当于 -diff -merge -text。

  • 禁用行结束标准化
  • 自动线路结束标准化

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明