Ignore all .DS_Store files in Git
#!/bin/bash
touch ~/.gitignore_global_config
echo ".DS_Store" >> ~/.gitignore_global_config
echo "._.DS_Store" >> ~/.gitignore_global_config
echo "**/.DS_Store" >> ~/.gitignore_global_config
echo "**/._.DS_Store" >> ~/.gitignore_global_config
git config --global core.excludesfile ~/.gitignore_global_config