这是我的问题:
git stash,但我之前没有执行过git add .。git stash.pop更改时,我发现该文件夹不在那里。发生了什么?有什么解决办法吗?
再次感谢。
从man git stash:
git-stash - Stash the changes in a dirty working directory away
Run Code Online (Sandbox Code Playgroud)
如果存在未跟踪的文件(您从未“git 添加”到存储库的文件),那么它们将不会被隐藏。因此,如果您删除了该文件夹,您就会丢失您的工作。
下次可以考虑使用git stash --include-untracked(参见man git stash)。