Last active
November 17, 2015 16:14
-
-
Save ronsuez/9004b47ea868ee3db42a to your computer and use it in GitHub Desktop.
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
Remove existing files from the repository: | |
find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch | |
find . -iregex ".*\.\(pyc\)" -print0 | xargs -0 git rm -f --ignore-unmatch | |
Add the line | |
.DS_Store | |
to the file .gitignore, which can be found at the top level of your repository (or created if it isn't there already). Then | |
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