Created
October 19, 2012 03:58
-
-
Save icyleaf/3916146 to your computer and use it in GitHub Desktop.
Clean .DS_Store for git repo
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
# remove any existing files from the repo, skipping over ones not in repo | |
find . -name .DS_Store -print0 | xargs -0 git rm --ignore-unmatch | |
# specify a global exclusion list | |
git config --global core.excludesfile ~/.gitignore | |
# adding .DS_Store to that list | |
echo .DS_Store >> ~/.gitignore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment