andilabs
andilabs

Reputation: 23321

What is the exact impact of following content of `.gitignore` file in one of subdirectories?

What is the exact impact of the following content of .gitignore file in one of the subdirectories:

*

!.gitignore

Upvotes: 1

Views: 41

Answers (1)

Mureinik
Mureinik

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

Related Questions