Is there a way to undo git reset if files are not added? -
i stupidly ran git reset --hard
on branch. in wrong branch. unfortunately, didn't perform git add .
. there way work?
no. not believe there method local code if never added local or git repository @ point. if added @ point, use git fsck last deleted data added @ point. there stack overflow here talking possibility