I had local uncommited changes to master. And I accidently called 'git stash' command. I lost my changes, i.e the master was reverted to last state from origin master. Is there way to return my lost uncommited changes ?
Asked
Active
Viewed 37 times
0
-
2Using `git stash apply stash@{0}` should put the changes back - My other advice is to commit early and often. – evolutionxbox Mar 18 '21 at 10:45
-
It returned the changes. Thank you so much ! – user152508 Mar 18 '21 at 10:48
-
Yes. But how to accept answer since it is in the comment – user152508 Mar 18 '21 at 10:54
-
There's nothing to accept here, I'd expect this question to get closed soon. I'd either accept the duplicate or delete the question altogether. – Liam Mar 18 '21 at 11:04