Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git reflog

git reflog
# you will see a list of every thing you've
# done in git, across all branches!
# each one has an index HEAD@{index}
# find the one before you broke everything
git reset HEAD@{index}
# magic time machine
Source by ohshitgit.com #
 
PREVIOUS NEXT
Tagged: #git #reflog
ADD COMMENT
Topic
Name
3+5 =