Skip to content

Instantly share code, notes, and snippets.

@andreisfedotov
Created April 2, 2023 11:38
Show Gist options
  • Save andreisfedotov/aa477e4d79e9d1abcebf6739dc717a9b to your computer and use it in GitHub Desktop.
Save andreisfedotov/aa477e4d79e9d1abcebf6739dc717a9b to your computer and use it in GitHub Desktop.
undo merge commit (local and remote)
git push -f origin <last_known_good_commit>:<branch_name>
git reset --hard <last_known_good_commit>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment