Skip to content

Instantly share code, notes, and snippets.

@leylaKapi
Created February 27, 2017 11:04
Show Gist options
  • Save leylaKapi/4a0e367d3da93968eccd8368ec4b7b33 to your computer and use it in GitHub Desktop.
Save leylaKapi/4a0e367d3da93968eccd8368ec4b7b33 to your computer and use it in GitHub Desktop.
git undo commit revert, reset
git log
git reset --hard COMMITID
git revert COMMITID
git checkout e3a3f28
git checkout feature/something
git merge e3a3f28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment