Make Git Globally Ignore Certain Files
Published in
1 min readNov 19, 2014
Note: This was originally posted on my blog at https://therobinkim.com/blog/globally-gitignore-certain-files. Any updates will appear there and not here.
.DS_Store
is annoying. I configured Git to globally ignore it.
I referred to Octocat’s Gist as the template for my .gitignore_global
. I created and put my file in /Users/robinkim/code
.
Next, I put the following command into my iTerm2: git config --global core.excludesfile /Users/robinkim/code/.gitignore_global
Magic.
Further Reading