LoginSignup
11
9

More than 5 years have passed since last update.

Gitで初期コミットのメッセージを変更

Last updated at Posted at 2012-04-10

git commit --amendやgit rebase -iでもできないので。

# 初期コミットをチェックアウトする
git checkout <root sha1>

# コミットメッセージを書き換える
git commit --amend

# masterの全コミットを修正された初期コミットの下流に持っていく
git rebase --onto HEAD HEAD master
11
9
1

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
11
9