2
2

More than 1 year has passed since last update.

【Git】コミット履歴を編集

Last updated at Posted at 2023-03-30

直近のコミットメッセージを変更

$ git commit --amend -m 'メッセージ内容'

上記コマンドで、直近のコミットメッセージを変更できます。

複数のコミットメッセージを変更

$ git rebase -i HEAD~n

上記のコマンドで、複数のコミットメッセージを変更することもできます。

  • 修正したコミット先頭のpickeditを変更する
  • Escを押下し、:wqで修正後のメッセージを保存する

Githubの関連記事

その他Gitの操作

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