LoginSignup
17
10

More than 5 years have passed since last update.

gitのエラーでcannot do a partial commit during a merge.が出た時の対処法

Posted at

pushをしようとすると以下のエラーコマンドが出る

fatal: cannot do a partial commit during a merge.

対処法

変更ファイルを

まずはaオプションをつけて行う。

git commit -a my_filename

それでもダメならiオプション(include)を付けて実行

git commit -i my_filename

こちらを参考にしました。
http://thomas-cokelaer.info/blog/2015/02/git-error-cannot-do-a-partial-commit-during-a-merge/

17
10
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
17
10