公告
财富商城
积分规则
提问
发文
2019-01-16 03:59发布
地球回转人心会变
Can you write comments in a .gitignore file?
.gitignore
If so, should the line be preceded with a # or some other indicator?
#
Yes, you may put comments in there. They however must start at the beginning of a line.
cf. 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. […]
The comment character is #, example:
# no .a files *.a
Do git help gitignore
git help gitignore
You will get the help page with following line:
A line starting with # serves as a comment.
最多设置5个标签!
Yes, you may put comments in there. They however must start at the beginning of a line.
cf. http://git-scm.com/book/en/Git-Basics-Recording-Changes-to-the-Repository#Ignoring-Files
The comment character is
#
, example:Do
git help gitignore
You will get the help page with following line: