LoginSignup
1
1

More than 5 years have passed since last update.

コミット時のコメントを修正する

Posted at

よく間違えてコミットするので、修正方法のメモ。

--amendオプションをつける

$ git commit -m "dump.rdb"
# "dump.rdb削除"にするつもりだったのに
$ git commit --amend -m "dump.rdb削除"
$ git log -1
#一つ前のログを表示
1
1
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
1
1