简体   繁体   中英

How to get my local changes for “deleted by them” files in git?

I merge a remote branch into a local one. After merging I get "deleted by them" files. It means that in remote branch these files are removed, but they have changes in a local branch, that will be lost, if I simply remove files from local branch too.

How to get those changes in a diff form per file? Just to know - what I am losing.

You can use Meldmerge to compare your changes with the incoming ones from the repo. Create a copy of your project folder(Say folder1) and take a fresh pull in that.

Now folder1 is updated with the latest code as on remote repo. Now compare your project folder with folder1 using meld. You can clearly locate the differences per file at the same place and include those in the project folder if required by just a click.

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