1. Git Attributes

原文:https://docs.gitlab.com/ee/user/project/git_attributes.html

2. Git Attributes

GitLab 支持定义自定义Git 属性,例如将哪些文件视为二进制文件,以及将哪种语言用于语法突出显示差异.

要定义这些属性, .gitattributes在存储库的根目录中创建一个名为.gitattributes的文件,并将其推送到项目的默认分支.

2.1. Encoding Requirements

.gitattributes文件必须使用 UTF-8 编码,并且不能包含字节顺序标记. 如果使用其他编码,则文件的内容将被忽略.

2.2. Syntax Highlighting

.gitattributes文件可用于定义语法高亮显示文件和差异时使用的语言. 有关更多信息,请参见"语法突出显示" .

Copyright © 温玉 2021 | 浙ICP备2020032454号 all right reserved,powered by Gitbook该文件修订时间: 2023-08-17 12:04:10

results matching ""

    No results matching ""