fork-dev / TrackerWin

Bug and issue tracker for Fork for Windows
450 stars 10 forks source link

Restored stash changes #2184

Open shrutenparmar opened 3 months ago

shrutenparmar commented 3 months ago

I checkout Git and then made some changes and placed them in Git's stash. Now some reason i deleted that checkout. Now that I've checkout again, can I recover my lost stashed changes?

DanPristupov commented 3 months ago

Stashes are in a separate section on the sidebar.

shrutenparmar commented 3 months ago

I know. But my stash changes are not inside this stash section.

DanPristupov commented 3 months ago

Then it's gone.

You can try to find the lost stash in terminal: git fsck --unreachable | grep commit | cut -d" " -f3 | xargs git log --merges --no-walk --grep=WIP

then mark it with a branch git branch SHA my_stash