Fork me on GitHub

ignore .DS_Store forever in GIT

With a couple of little commands, you’ll be able to ignore the .DS_Store files forever from your git repositories on mac!

The following command will add the .gitignore file to the git configuration

git config --global core.excludesfile ~/.gitignore

then, the following, will add the .DS_Store to the list


echo .DS_Store >> ~/.gitignore

and voilà!

Trackbacks

  1. [...] ignore .DS_Store forever in GIT • antoniolorusso.com (tags: git tips) [...]

    Pingback by links for 2009-05-18 | NeXt — May 18, 2009 @ 5:04 pm


  2. [...] ignore .DS_Store forever in GIT git config –global core.excludesfile ~/.gitignore echo .DS_Store >> ~/.gitignore [...]

    Pingback by ignore .DS_Store forever in git » Development logs — March 5, 2010 @ 10:08 pm


  3. [...] antioniolorusso.com To Share my Posts: Posted by Flavia on May 30, 2011 in Permutations of Life | 0 [...]

    Pingback by ignore files from github | Flavia A. Grosan — May 30, 2011 @ 3:20 pm



Responses


  1. Such a small yet irritating problem.. many thanks for that.


    Comment by andywww — March 29, 2010 @ 6:09 pm


  2. great, many many thanks


    Comment by Lacy — July 13, 2010 @ 5:30 pm


  3. Sweet – thanks!


    Comment by vesters — November 3, 2010 @ 9:41 am


  4. Brand new to git and this fixed a major pain in my butt, thanks!


    Comment by jyoseph — December 9, 2010 @ 7:55 am



Leave a comment

(required)

(required)