Skip to content

Instantly share code, notes, and snippets.

@maorkavod
Created November 19, 2021 05:51
Show Gist options
  • Save maorkavod/f0e2cdda700a286b9a6861b79580f94e to your computer and use it in GitHub Desktop.
Save maorkavod/f0e2cdda700a286b9a6861b79580f94e to your computer and use it in GitHub Desktop.
git reset --hard 56e05fced
# Move the branch pointer back to the previous HEAD
git reset --soft "HEAD@{1}"
git commit -m "Revert to 56e05fced"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment