Last active
February 4, 2020 22:07
-
-
Save cloudcreatordotio/07423035d00403e18ac576026032fc87 to your computer and use it in GitHub Desktop.
Ignore all .DS_Store files in Git
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment