Skip to content

Instantly share code, notes, and snippets.

@jmini
Created February 3, 2018 08:34
Show Gist options
  • Save jmini/de392ab96391581c52f66285c333548d to your computer and use it in GitHub Desktop.
Save jmini/de392ab96391581c52f66285c333548d to your computer and use it in GitHub Desktop.
Git ignore all the .DS_Store files in every folder and subfolder globally
echo ".DS_Store" >> ~/Git/.gitignore_global
echo "._.DS_Store" >> ~/Git/.gitignore_global
echo "**/.DS_Store" >> ~/Git/.gitignore_global
echo "**/._.DS_Store" >> ~/Git/.gitignore_global
git config --global core.excludesfile ~/Git/.gitignore_global
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment