2

idea 里面 git merge 把远程 merge 到本地,本地代码直接没了

 2 years ago
source link: https://www.v2ex.com/t/812904
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

V2EX  ›  程序员

idea 里面 git merge 把远程 merge 到本地,本地代码直接没了

  movq · 22 小时 55 分钟前 · 2014 次点击

本地 A 文件夹里面有个 b.file ,

我把它移动到 A/B/b.file 了,进行修改然后 commit 了

远程分支修改了 b.file ,我把修改 merge 到本地。因为我不需要远程的修改,所以我选择了保留自己的修改,结果 b.file 直接被删了

我怀疑是 idea 认为我对 b.file 的操作是「删除」操作,但问题是,我对 b.file 的操作是「移动到 A/B 目录,并进行修改」

这种怎么解决呢?


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK