LoginSignup
18
18

More than 5 years have passed since last update.

Gitで過去のコミットメッセージを修正する

Posted at
$ git log --oneline
fc86912 2013-01-07 04:16:21.000000000 +0900
bc34692 2013-01-06 04:15:53.000000000 +0900
13dbbff 2013-01-05 04:16:47.000000000 +0900
$ git rebase -i 13dbbff
エディタが立ち上がる。

コミットメッセージを変更するだけなら、pickrewordに変更し、コミットメッセージを書き換えたら完了。
rebasing (1/3)と表示される。 巨大なリポジトリの場合、かなり時間がかかるので注意。

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