How to recover uncommited files that were lost during commit error


Im not very good with git and i was using gitHubDesktop. I tried to switch to another branch and selected to copy current changes to the next branch. Got an error and and all uncommited changes were gone.Unfortunatly I have lost quite a big load of work. Is there a way to recover those files?

Please help, thank you!

Nevermind, sorry you can close this. Appearently it created 2 stashes, first one busted with 1 file on the original branch(that missled me) and the second one on the branch i was trying to switch to with all the files.

1 Like