Skip to content

Are comments allowed in ignore files? #2457

Answered by BurntSushi
unphased asked this question in Q&A
Discussion options

You must be logged in to vote

The GUIDE defers to man gitignore for the precise syntax. And indeed, the gitignore format supports comments. From man gitignore:

A line starting with # serves as a comment. Put a backslash ("") in front of the first hash for patterns that begin with a hash.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by unphased
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants