Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git: after merge conflicts, checkout for resetting files, but now merge doesn't reapply

At some branch X I did

git merge master

But there was some conflicts. I did a mistake during resolving the conflicts, (basically doing git add when I should have done git rm to confirm some local deletes)

To cancel those errors, I did

git checkout -- folder/

which removed everything from cache. But now I did attempted again the merge and I get this:

fatal: You have not concluded your merge (MERGE_HEAD exists). Please, commit your changes before you can merge.

What should I do to avoid this message?

like image 397
diffeomorphism Avatar asked Dec 06 '25 05:12

diffeomorphism


1 Answers

Typically, to roll back a merge that generated conflicts you'd do git merge --abort.

like image 133
Chris Avatar answered Dec 08 '25 21:12

Chris



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!