Last active
May 25, 2016 14:03
-
-
Save samiare/5a8eb1a4d83bc2274529 to your computer and use it in GitHub Desktop.
Remove pesky .DS_Store files
This file contains 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
In Terminal | |
=========== | |
find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch | |
-or?- | |
git rm -r --cached . | |
git add . | |
git commit -m "fixed untracked files" | |
In .gitignore file | |
================== | |
.DS_Store |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment