Created
December 18, 2018 19:09
-
-
Save zfael/1177348a2cf77e4bfeac938fb6d5a66f to your computer and use it in GitHub Desktop.
Resync git repo with new gitignore file
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
# rm all files | |
git rm -r --cached . | |
# add all files as per new .gitignore | |
git add . | |
# now, commit for new .gitignore to apply | |
git commit -m ".gitignore is now working" | |
Ref> https://stackoverflow.com/questions/7075923/resync-git-repo-with-new-gitignore-file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment