如果解决方案微不足道,我很抱歉,但我不是GIT专家,也没有在网上找到任何东西。
我藏了一些变化,我很难恢复它们。也许我把
git stash
两次命令,我希望这不会让我失去一切。
根据
this question
和
official documentation
,我尝试了以下命令:
git stash pop
我收到:
src/schema/schema-generator2.js: needs merge
unable to refresh index
所以我试着:
git merge
error: Merging is not possible because you have unmerged files
然后我试着:
git stash apply stash@{0}
unknown option: -encodedCommand
git stash apply
src/schema/schema-generator2.js: needs merge
git stash apply --index
src/schema/schema-generator2.js:需要合并
git stash show -p stash@{0} | git apply -R
git : Too many revisions specified: 'stash@' 'MAA=' 'xml' 'xml'
In riga:1 car:1
+ git stash show -p stash@{0} | git apply -R
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Too many revisi...A=' 'xml' 'xml':String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
error: unrecognized input
在上面的文本中,我写了代码的消息,并引用了答案。希望一切都清楚。
我不明白发生了什么,为什么什么都不管用?我能做些什么来取消我的更改?