Created
March 2, 2021 01:48
-
-
Save patsma/5edeed92a7135834bc25f30e7760b8e8 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
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