Git 存储失败

Jak*_*son 2 git git-stash smartgit

我在 Windows 中使用 SmartGit。今天我需要硬重置一些提交。SmartGit 自动为我保存了我修改过的文件。

重置后,它尝试应用存储:

$ git.exe stash apply --index stash@{0}

但它给了我:

Apply Stash: stash failed (return code 1).

我可以查看存储内容并查看我的所有代码,但我无法应用存储。我该如何解决?

Mud*_*zvi 5

就做git stash pop。它会让你在工作树中隐藏你的更改。(pop考虑到你想要stash@{0}.

希望能帮助到你!