Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to reset local master to origin master

git checkout -B master origin/master

//for branch
git checkout -B <branch> origin/<branch>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #reset #local #master #origin #master
ADD COMMENT
Topic
Name
9+2 =