Last Updated: February 25, 2016
· joecritch

Force ignore on your .gitignore

Some times those existing files don't ignore themselves...

(Well, I think it's pretty much all the time.)

Add this to your ~/.aliases dot file:

alias gig="git rm -r --cached . && git add . && git commit -m $*"

(Taken from this <a href="">Stackoverflow post</a>.)

Then use it with the following command:

gig "Ignoring .DS_Store"