私は最近git stash
を実行し、ブランチでいくつかの作業を行ってコミットしましたが、実行しようとしたときにこれらのエラーが発生しました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
-- ローカルの変更をコミットしていません。それを実現する方法を提案できますか?
ありがとう。