This site runs best with JavaScript enabled.

Globally .gitignore Certain Files

Robin Kim

November 19, 2014


.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 ran the following command:

git config --global core.excludesfile /Users/robinkim/code/.gitignore_global

Magic.

Further Reading

Share article