简体   繁体   中英

Git conflict - mergetool not configured

I have had an issue with my project: I forgot to pull the remote branch before working. then I got a conflict with a stylesheet called application.css

Though when I pulled the remote branch to origin, all not conflicted files were updated (which was good). Only the above file was marked as conflicting.

My command line tool said I had to fix the conflict before commiting.

I then ran : git mergetool

But got an error mergetool not configured and then something called vdiff was launched.

It is a Windows command line conflict resolving tool but I am a bit lost of what I should do. I have no knowledge of the keys that I may use

在此处输入图片说明

Can you help me fix this ?

why don't you just open up it up with something like sublime text and then edit the conflicted application.css file manually?

After the conflict is solved you'll have to mark the file as resolved by executing

 git add <filename>

Finally, after solving all conflicts, a merge conflict situation needs to be concluded by a regular commit.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM