Here is my problem:
git stash
, but I did not execute git add .
before.git stash
.pop
the changes I found that the folder was not there.What happened? Is there any solution?
Thanks again.
From man git stash
:
git-stash - Stash the changes in a dirty working directory away
If there were untracked files (files you never "git added" to the repo), then they will not be stashed. So if you deleted the folder, you lost your work.
For the next time, you can consider using git stash --include-untracked
(see man git stash
).