Redo part of an already committed merge

后端 未结 3 795
小鲜肉
小鲜肉 2021-01-20 16:47

I have committed a big merge. Later, it appears that some files weren\'t merged correctly. I want to redo just these files, not the entire merge - the merge was big and I do

3条回答
  •  南方客
    南方客 (楼主)
    2021-01-20 17:25

    Since git created a commit that represents your big merge with conflicts you could have just change that commit. To do that, in your working directory, do all the fixes, add to index and amend commit.

    # do all the fixes
    git add .
    git commit --amend
    

提交回复
热议问题