By mistake I pressed on drop and now I dont have my changes is there any way to bring the dropped stash in Visual Studio?
How to undo the drop?
This is what worked for me:
Answer here: How to recover a dropped stash in Git?
In the project folder right mouse click and click on Gitbash here

In the GIT console window: git fsck --no-reflog | awk '/dangling commit/ {print $3}'
gitk --all $( git fsck --no-reflog | awk '/dangling commit/ {print $3}' )
Right Click on the commit and click new Branch

Now in Visual Studio the new branch can be opened and inspect the code

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With