LoginSignup
6
6

More than 5 years have passed since last update.

一個前のコミットをキャンセルする

Last updated at Posted at 2014-09-11

git commit したものの、そのコミットを無かったことにしたい。
ただ、修正内容自体は生かしておきたい。

git reset --soft HEAD^

HEAD^の部分で、どこまで遡ってキャンセルするか指定する。

6
6
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
6
6