Merge branch 'nd/doc-ignore' into maint
* nd/doc-ignore: gitignore.txt: suggestions how to get literal # or ! at the beginning
This commit is contained in:
commit
530d71011e
@ -74,11 +74,15 @@ PATTERN FORMAT
|
|||||||
for readability.
|
for readability.
|
||||||
|
|
||||||
- A line starting with # serves as a comment.
|
- A line starting with # serves as a comment.
|
||||||
|
Put a backslash ("`\`") in front of the first hash for patterns
|
||||||
|
that begin with a hash.
|
||||||
|
|
||||||
- An optional prefix '!' which negates the pattern; any
|
- An optional prefix "`!`" which negates the pattern; any
|
||||||
matching file excluded by a previous pattern will become
|
matching file excluded by a previous pattern will become
|
||||||
included again. If a negated pattern matches, this will
|
included again. If a negated pattern matches, this will
|
||||||
override lower precedence patterns sources.
|
override lower precedence patterns sources.
|
||||||
|
Put a backslash ("`\`") in front of the first "`!`" for patterns
|
||||||
|
that begin with a literal "`!`", for example, "`\!important!.txt`".
|
||||||
|
|
||||||
- If the pattern ends with a slash, it is removed for the
|
- If the pattern ends with a slash, it is removed for the
|
||||||
purpose of the following description, but it would only find
|
purpose of the following description, but it would only find
|
||||||
|
Loading…
Reference in New Issue
Block a user