简体   繁体   中英

how to remove and keep only the updated files after running git mergetool

I'm trying to do git merge and ran into conflict. I used: git mergetool --tool=emerge

This has produced four files style_Backup.css : old code
style_Base.css : old code
style_Local.css : it's an empty file
style_Remote.css : Has some changes

How do I go about this? Should I manually delete the file and rename them?

Try first, if you don't want to complete the merge, a git merge --abort

If extra files remains, clean them with clean -n (to get a preview) / clean -f (to actually remove them)

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