Created
May 22, 2024 17:45
-
-
Save ryanpadilha/ab359a0d321beb97d559330ef57b9f7e to your computer and use it in GitHub Desktop.
Git local cache cleaning
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
When you think your git is messed up, you can use this command to do everything up-to-date. | |
git rm -r --cached . | |
git add . | |
git commit -am 'git cache cleared' | |
git push | |
Also to revert back last commit use this : | |
git reset HEAD^ --hard |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment