We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0115042 + 866f5f8 commit 4321fe0Copy full SHA for 4321fe0
1 file changed
Documentation/gitignore.txt
@@ -74,11 +74,15 @@ PATTERN FORMAT
74
for readability.
75
76
- A line starting with # serves as a comment.
77
+ Put a backslash ("`\`") in front of the first hash for patterns
78
+ that begin with a hash.
79
- - An optional prefix '!' which negates the pattern; any
80
+ - An optional prefix "`!`" which negates the pattern; any
81
matching file excluded by a previous pattern will become
82
included again. If a negated pattern matches, this will
83
override lower precedence patterns sources.
84
+ Put a backslash ("`\`") in front of the first "`!`" for patterns
85
+ that begin with a literal "`!`", for example, "`\!important!.txt`".
86
87
- If the pattern ends with a slash, it is removed for the
88
purpose of the following description, but it would only find
0 commit comments