Skip to content

Instantly share code, notes, and snippets.

@mordonez
Last active September 28, 2023 09:14
Show Gist options
  • Save mordonez/3d305a5692dcb8c8611be477eea7d7db to your computer and use it in GitHub Desktop.
Save mordonez/3d305a5692dcb8c8611be477eea7d7db to your computer and use it in GitHub Desktop.
Git: Revert Pull Request
git checkout -b hotfix/revert-pull-request
// Find the MERGE PULL REQUEST on the main timeline and copy the commit identifier
git revert -m 1 HASH_COMMIT_MERGE_PULLREQUEST
git push origin hotfix/revert-pull-request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment