Skip to content

Instantly share code, notes, and snippets.

@tfwright
Created September 5, 2010 06:10
Show Gist options
  • Save tfwright/565799 to your computer and use it in GitHub Desktop.
Save tfwright/565799 to your computer and use it in GitHub Desktop.
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à!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment