Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

undo git pull origin master into feature branch

# shows every {ID}, position of HEAD in last 30 days (by default)
git reflog 

# reset to that specific commit 
git reset --hard <specific_id>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #undo #git #pull #origin #master #feature #branch
ADD COMMENT
Topic
Name
4+3 =