Skip to content

Instantly share code, notes, and snippets.

@taea
Created November 29, 2012 12:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taea/4168847 to your computer and use it in GitHub Desktop.
Save taea/4168847 to your computer and use it in GitHub Desktop.
Commitのとりけし(rebase -i)#いまのなし

###commitをこっそり取り消す (rebase -i) #いまのなし

$ git rebase -i HEAD~~~


HEADから3つのCommitがviで出てくる

消したいcommitの名前を削除

:w

commitがなかったことに
🙈
###あ、いや、やっぱあのcommit必要だったわΣ(ΦωΦ)

$ git rebase --abort


直前のcommitの取り消しをなかったことに
🙈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment