-
-
Save sawwd/c5f13c5f0c6eef5a56087d92aac59024 to your computer and use it in GitHub Desktop.
Clear git cache
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
git rm -r --cached . | |
git add . | |
git commit -am 'git cache cleared' | |
git push |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is helpful when you aleardy have tracked files (eg *.log files) and you need to add them to .gitignore.