Can you write comments in a .gitignore
file?
If so, should the line be preceded with a #
or some other indicator?
commentsgitgitignore
Can you write comments in a .gitignore
file?
If so, should the line be preceded with a #
or some other indicator?
Best Answer
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: