Created
May 23, 2024 09:56
-
-
Save sovetski/f3da88244648585d1d801436e0f0668b to your computer and use it in GitHub Desktop.
Git: Delete previous commit
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
# ALWAYS git pull before doing it | |
git pull | |
git reset HEAD^ --hard | |
git push origin -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment