如何使用“ git stash”推送来创建“ Unmerged path ...两个都已修改” git状态?

问题描述

如何使用git statusUnmerged paths... both modified)进入git stash的{​​{1}}状态?

所需的git stash push状态:

git status

我想这样做是为了了解这是如何发生的,并加深我对$ git status On branch my-branch Unmerged paths: (use "git restore --staged <file>..." to unstage) (use "git add <file>..." to mark resolution) both modified: my-file 的理解。我认为这可能与索引和工作树发生冲突的更改有关,或者与git stash之后的git rebase有关,但是我不确定我对存储如何工作的理解是否正确

这与Why does "git stash push" cause "Unmerged paths: ... both modified: ..."?

有关

解决方法

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

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

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