Skip to content

Instantly share code, notes, and snippets.

@libitte
Created October 24, 2013 22:14
Show Gist options
  • Select an option

  • Save libitte/7146073 to your computer and use it in GitHub Desktop.

Select an option

Save libitte/7146073 to your computer and use it in GitHub Desktop.
commit を取り消したいとき...

not yet pushed

git reset --hard HEAD^

already pushed...

git revert [commit_hash]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment