Hoping for Help with Unstaged Recovery Options
So let me know if I should instead be asking this is visual studio, I don’t know all the details of what exact git commands it is running under the hood.
Basically a friend kinda messed up somehow.
I believe what happened was as follows:
-
Tried to do a sync in visual studios to push a couple of staged file changes
-
Got a 502 error, entered his username/permissions in the output thingy in visual studios to fix this(?)
-
This caused it to work
-
However he realized that he has unstaged changes that he did not want to push etc, he said apparently visual studios sync works such that all unstaged changes are pushed too(?) (I didn’t think it worked that way but I only ever manually pull and then push when I am ready and low key save local copies of file changes to avoid merging, I know it’s bad practice but alas at least I’m not in his shoes)
-
So he right clicks and selects undo commit
-
Boom all of his staged changes are back in the staged area but all of his unstaged changes are gone. And apparently they were extensive.
-
Unfortunately from here he thinks he ought to push these (I hope this didn’t totally eliminate his chances for recovery but I think it limited them)
I know he has tried the dangling blobs method but the result was the last blob was very old not containing his recent updates at all. Also he tried looking at the file timeline in visual studios which also old help old states.
Is there any hope for him at all? I’m not even fully clear on what happened to his unstaged changes in the first place…
It’s a long shot but I thought I should ask.
Posted Feb 26, 2026, 2:04 PM UTC