LoginSignup
0
0

More than 3 years have passed since last update.

git commit名間違えた時に修正する方法

Last updated at Posted at 2019-08-12

git commit --amend

git commit --amend は、間違って出してしまった「直前の」コミットを修正する コマンド

→vim操作で以下の部分の間違いなどを編集できるようになる
 ・間違ったコミット名
 ・間違ったソースコード
など

直前ではなく、前のコミット名を変えたい場合 git rebase -i

以下のURLの通りに実行
http://www-creators.com/archives/5238

しかし修正したコミットがHEADになってしまっていた。

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