Reputation: 11
I was stashing my code changes and GIT deleted my ignored folder /img/*, is there any way to recover the ignored folder?
Thanks a lot for answering!
Upvotes: 0
Views: 259
Reputation: 61
First of all git
doesn't delete any of your stuff. I am guessing you have done the following:
git
stash
. git stash
helps you in stashing the changes which you have recently made.git stash pop
you will get back the changes which means you will see your folder again.Upvotes: 0
Reputation: 580
You can unstash the last stashed set of changes by running the following: git stash pop
.
If the files were removed as part of the stash process then that should get them back for you.
I have a hunch though that they didn't get deleted by the stash. Stashes by default, without any flags, will leave ignored files alone.
Upvotes: 1