为了账号安全,请及时绑定邮箱和手机立即绑定

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

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

Git
慕村225694 2019-07-22 09:43:33
如何从“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不存储命令。
查看完整描述

2 回答

  • 2 回答
  • 0 关注
  • 742 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信