Skip to content

Instantly share code, notes, and snippets.

@hassanjamal
Created December 9, 2016 08:26
Show Gist options
  • Save hassanjamal/b9879b202679477acd340c2de8ba838d to your computer and use it in GitHub Desktop.
Save hassanjamal/b9879b202679477acd340c2de8ba838d to your computer and use it in GitHub Desktop.
Ignore all DS Store files
echo ".DS_Store" >> ~/.gitignore_global
echo "._.DS_Store" >> ~/.gitignore_global
echo "**/.DS_Store" >> ~/.gitignore_global
echo "**/._.DS_Store" >> ~/.gitignore_global
git config --global core.excludesfile ~/.gitignore_global
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment