你能在.gitignore
文件中写注释吗?
如果是这样,该行是否应该以 #
或其他指示符开头?
最佳答案
是的,你可以在那里发表评论。但是,它们必须从一行的开头开始。
比照。 http://git-scm.com/book/en/Git-Basics-Recording-Changes-to-the-Repository#Ignoring-Files
The rules for the patterns you can put in the .gitignore file are as follows:
- Blank lines or lines starting with # are ignored.
[…]
注释字符为#
,示例:
# no .a files
*.a
关于git - .gitignore 中的评论?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8865848/