我最近做了 a git stash
,然后在分支上做了一些工作并提交了它,并在尝试做 a 时遇到了这些错误git stash apply
:
CONFLICT (delete/modify): app/controllers/orders_controller.rb deleted in Updated upstream and modified in Stashed changes. Version Stashed changes of app/controllers/orders_controller.rb left in tree.
CONFLICT (content): Merge conflict in app/models/product.rb
git status
显示以下内容:
$ git status
# On branch develop
# Your branch is ahead of 'origin/develop' by 16 commits.
# Unmerged paths:
# (use "git reset HEAD <file>..." to unstage)
# (use "git add/rm <file>..." as appropriate to mark resolution)
#
# deleted by us: app/controllers/orders_controller.rb
# both modified: app/models/product.rb
标记为“删除/修改”的文件是我添加的一个新文件,在stash
.
我想回到我之前的状态git stash
——有未提交的本地更改。你能建议如何做到这一点吗?
谢谢。