Skip to content

Instantly share code, notes, and snippets.

@sovetski
Created May 23, 2024 09:56
Show Gist options
  • Save sovetski/f3da88244648585d1d801436e0f0668b to your computer and use it in GitHub Desktop.
Save sovetski/f3da88244648585d1d801436e0f0668b to your computer and use it in GitHub Desktop.
Git: Delete previous commit
# 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