DEV Community

Discussion on: How to write .gitignore correctly

Collapse
 
dcsan profile image
dc

Otsukare san!
If you can explain NOT rules! Eg

*
!.keep
!files

Especially when you have a second ! ignore the behavior is weird

Collapse
 
cicirello profile image
Vincent A. Cicirello

@dcsan I found this article a while back that does a good job explaining the not rules: jasonstitt.com/gitignore-whitelist...