Reputation: 32721
I have *.log
in .gitignore_global but I want to add it locally.
How can I achieve this?
Upvotes: 2
Views: 251
Reputation: 311735
Patterns prefixed with a "!" will match again, so you can add this in your local .gitignore
:
!*.log
- An optional prefix ! which negates the pattern; any matching file excluded by a previous pattern will become included again. If a negated pattern matches, this will override lower precedence patterns sources.
Upvotes: 4