Skip to content

Instantly share code, notes, and snippets.

@donchan922
Last active July 19, 2020 07:42
Show Gist options
  • Save donchan922/43f625d890bc8eba716df96c7ed080e0 to your computer and use it in GitHub Desktop.
Save donchan922/43f625d890bc8eba716df96c7ed080e0 to your computer and use it in GitHub Desktop.
# 直前のコミットの内容を打ち消すためのコミットを行う
$ git revert HEAD
or
# 対象のコミットの内容を打ち消すためのコミットを行う
$ git revert コミット番号
# 打ち消したコミットをプッシュする
$ git push origin HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment