How to Overwrite a Global gitignore

Aug 14, 2019

I’m a big fan of ignoring files globally with git. And all was good until I needed to overwrite a setting in the that global .gitignore. Git has that covered to. Add a ! in the local .gitignore to re add those files on a per project bases.

This will add the tags directory to the tracked files just for this project.

_site
.sass-cache
.jekyll-metadata
!tags

If you enjoyed this and would like to be notified the next time I write something, you can subscribe with your choice of RSS or Email.

I promise not to spam you and you can unsubscribe at anytime.

Also, here are some other items you might like longer longer:

or go see everything in the archive.