Skip to content

Instantly share code, notes, and snippets.

@ndom91
Created August 16, 2019 07:27
Show Gist options
  • Save ndom91/9aebbb8bcd980b33fdf7c5ba9fb20f30 to your computer and use it in GitHub Desktop.
Save ndom91/9aebbb8bcd980b33fdf7c5ba9fb20f30 to your computer and use it in GitHub Desktop.
Global .gitignore - .DS_Store
#!/bin/bash
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