I tried syncing in vscode but git credentials were not set and the sync failed. Then I pressed Sync in a GitHub for desktop tool and all my changes were discarded. Is there a way to get them back?..I tried signing in to github in my vscode but nothing helped.
Asked
Active
Viewed 4,235 times
0
-
It sounds like you did not bother to commit the changes before syncing. There's a good chance your changes are gone if that's the case: http://stackoverflow.com/a/7147749/459750 – J. Titus May 10 '17 at 15:29
-
I did commited my changes. Then pressed on 'Sync'. – neomib May 10 '17 at 15:35
-
1Does `git reflog` show you your commit? – J. Titus May 10 '17 at 15:46
-
Hi it worked... `git reflog` is the answer!!! Thank u so much!! – neomib May 11 '17 at 07:30