Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix patterns with leading exclamation marks #54

Merged

Conversation

jherland
Copy link
Contributor

@jherland jherland commented Oct 2, 2023

Quoting the relevant paragraph in
https://git-scm.com/docs/gitignore#_pattern_format:

Put a backslash ("\") in front of the first "!" for patterns that
begin with a literal "!", for example, "\!important!.txt".

Quoting the relevant paragraph in
https://git-scm.com/docs/gitignore#_pattern_format:

  Put a backslash ("\") in front of the first "!" for patterns that
  begin with a literal "!", for example, "\!important!.txt".
@mherrmann mherrmann merged commit 1040aa5 into mherrmann:master Oct 3, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants