git のfirst commitを修正する

個人的なメモ。gitの最初のコミットをrebase -iで修正しようとしたけどできなかった。

さすがに最初の履歴は変更できないのかなと思って、一応調べたら
https://github.com/git/git/blob/master/Documentation/RelNotes/1.7.12.txt#L59

とかあるっぽいので

git rebase -i –root でした。
変更でいきない歴史はなかった。

参考にしたページ: http://stackoverflow.com/questions/2246208/change-first-commit-of-project-with-git

Comments