Last active
July 28, 2020 18:34
-
-
Save GoncaloPT/9ccfad9df718f57e5f565f7df0cacb3b to your computer and use it in GitHub Desktop.
Remove .DS_Store files from a Git repository?
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
find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch | |
echo .DS_Store >> .gitignore | |
git add .gitignore | |
git commit -m '.DS_Store banished!' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment