Reputation: 23321
What is the exact impact of the following content of .gitignore
file in one of the subdirectories:
*
!.gitignore
Upvotes: 1
Views: 41
Reputation: 311823
The *
means "everything". !
is the negation operator. So basically, this means ignore everything except the .gitignore
file. Or another words, ignore everything in this directory except the fact that you're ignoring everything.
Upvotes: 1