如何從“Git藏存儲(chǔ)蓄-全部”中恢復(fù)過來?我想存儲(chǔ)未跟蹤的文件,但我總是傳遞錯(cuò)誤的選項(xiàng)。對(duì)我來說,這聽起來是對(duì)的:git stash save [-a|--all]但這實(shí)際上也會(huì)忽略文件。正確的辦法是:git stash save [-u|--include-untracked]當(dāng)我跑的時(shí)候git stash save -a試著git stash pop對(duì)于所有被忽略的文件,我得到了無數(shù)的錯(cuò)誤: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不存儲(chǔ)命令。
- 2 回答
- 0 關(guān)注
- 488 瀏覽
添加回答
舉報(bào)
0/150
提交
取消