Using Github Desktop (v. 2.9.6 on Windows 10) as beginner, when moving back and forth from branch to branch, I stash my changes to keep them on a branch for later. But doing this twice in a row, instead of stacking the changes in the stash, it actually overwrites and drops the previous stash.
I have therefore lost multiple changes. Github desktop does not offer an option to recover these, although they should be recoverable using command lines (see here: How to recover a dropped stash in Git?). But a Shell command line is no longer readily available in Github desktop. Also the discarded files were not available in the windows Recycle Bin, and trying to cancel using ctrl+Z didn't help.
This question is also similar to thread How can I undo discard changes in GitHub Desktop?, but the thread is closed without satisfactory answer. Accepted solution simply says that Github desktop staff confirmed there is no way to recover such discarded changes.
terminal
as your command line. If you're on Windows, usePowershell
. Then try the stuff in the question you linked – Armbrecht