Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git lost changes after reset --keep

git reflog is your friend.
Find the commit that you want to be on in that list and you can reset to it
for example:git reset --hard e870e41

(If you didn't commit your changes... you might be in trouble - commit early, and commit often!)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #lost #reset
ADD COMMENT
Topic
Name
1+3 =