[英]howto apply the Changes from a Git Stash save -u
I used the following command to git stash save with tracked and untracked files我使用以下命令将 git stash save 与跟踪和未跟踪的文件
git stash save -u
But I was trying to use git stash apply stash@{0}
to apply the changes, the untracked files were only restored, however, the tracked files were not restored.但是我尝试使用
git stash apply stash@{0}
来应用更改,仅恢复了未跟踪的文件,但是未恢复跟踪的文件。 I used git stash show stash@{0}
to check the all tracked files available still in the stash.我使用
git stash show stash@{0}
来检查存储中仍然可用的所有跟踪文件。
How can I apply the tracked files from the stash then?那么如何应用存储中的跟踪文件?
使用git stash pop
而不是git stash apply
来检索所有已跟踪和未跟踪的文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.