Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does Git remember and use a conflict resolution from an aborted rebase without asking me?

I did a rebase on my branch foo

git rebase master

Did some conflict resolutions, then decided I didn't want to do it, and aborted.

git rebase --abort

All the branch log histories look normal. Now I want to start the same process again.

git rebase master

When git hits the first conflict that it hit the first time, it lists the files as in conflict just like it did before. BUT instead of marking up the conflict with <<<<< etc, it just shows the file in its state after I resolved the conflict the first time. This is interesting that it has this feature… but I actually want to resolve one of the conflicts differently, so I don't want it to remember and re-apply.

What exactly is going on here, and can I turn it off?

like image 996
John Bachir Avatar asked Feb 23 '11 20:02

John Bachir


1 Answers

Use git checkout --conflict=merge -- your_file to get the version of the file with conflicts

like image 150
knittl Avatar answered Nov 16 '22 03:11

knittl