为什么“ git stash push”会导致“未合并的路径:...都已修改:...”?

问题描述

Q1:如何重现这种情况? (我尝试复制它失败)

第二季度:这个Unmerged paths:... both modified:...状态意味着什么?


我做了git stash(推)并进入了Unmerged paths: ... both modified: ...状态,我不知道为什么/这意味着什么。


我的步骤:

  1. 修改一个文件
  2. (我可能做过git add -p,然后可能修改了工作树副本(我不记得了))
  3. $ git stash -m 'my message'
  4. $ git status
Unmerged paths:
  (use "git restore --staged <file>..." to unstage)
  (use "git add <file>..." to mark resolution)
    both modified:   questions/templates/flashcard.html

no changes added to commit (use "git add" and/or "git commit -a")

解决方法

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

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

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