如何从“Git藏存储蓄-全部”中恢复过来?

如何从“Git藏存储蓄-全部”中恢复过来?

我想存储未跟踪的文件,但我总是传递错误的选项。对我来说,这听起来是对的:

git stash save [-a|--all]

但这实际上也会忽略文件。正确的办法是:

git stash save [-u|--include-untracked]

当我跑的时候git stash save -a试着git stash pop对于所有被忽略的文件,我得到了无数的错误:

path/to/file1.ext already exists, no checkout
path/to/file1.ext already exists, no checkout
path/to/file1.ext already exists, no checkout
...
Could not restore untracked files from stash

所以命令失败了。

如何收回跟踪和未跟踪的更改?git reflog不存储命令。


慕村225694
浏览 743回答 2
2回答
打开App,查看更多内容
随时随地看视频慕课网APP