添加 comments/remarks 到 .gitattributes
Add comments/remarks to .gitattributes
是否可以向 .gitattributes 文件添加评论或备注?
如果是,评论行到底是什么样子的?
# This is a comment!
在 .gitattributes 中。
记录在 https://git-scm.com/docs/gitattributes 中:
That is, a pattern followed by an attributes list, separated by whitespaces. Leading and trailing whitespaces are ignored. Lines that begin with # are ignored. Patterns that begin with a double quote are quoted in C style. When the pattern matches the path in question, the attributes listed on the line are given to the path.
是否可以向 .gitattributes 文件添加评论或备注?
如果是,评论行到底是什么样子的?
# This is a comment!
在 .gitattributes 中。
记录在 https://git-scm.com/docs/gitattributes 中:
That is, a pattern followed by an attributes list, separated by whitespaces. Leading and trailing whitespaces are ignored. Lines that begin with # are ignored. Patterns that begin with a double quote are quoted in C style. When the pattern matches the path in question, the attributes listed on the line are given to the path.