LoginSignup
1
2

More than 5 years have passed since last update.

【git】revert - 過去のコミットを打ち消す

Last updated at Posted at 2016-09-22

コミット書き換えシリーズ

"revert"では、
指定したコミットの内容を打ち消すコミットを作り出すことができます。
"rebase -i"や"reset"でコミットを削除することもできますが、
そのコミットが既に公開済みであった場合は勝手に削除できません。
このような場合には、"revert"で内容を打ち消すコミットを作り出すことができます。

[主な利用シーン]
-過去に公開したコミットを安全に打ち消す

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2