git stash pop:在单个文件中放弃本地更改

问题描述

在我的分支机构

 git stash
 git checkout master
 git pull --rebase
 git checkout my-branch
 git rebase master
 git stash pop

一切正常,但只有1个文件有冲突,我不希望自己藏有更改。还有许多其他文件没有冲突,因此需要进行更改。

Unmerged paths:
  (use "git restore --staged <file>..." to unstage)
  (use "git add <file>..." to mark resolution)
  both modified:   /server/Server.java

我如何摆脱这些变化并拥有隐藏的弹出窗口?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)