Answers for "how to reset head of the local branch same as that of the origin"

6

how to reset git master branch by remote

git fetch origin
git reset --hard origin/master
Posted by: Guest on April-14-2020
4

git reset origin branch

git checkout mybranch
git reset --hard origin/mybranch
Posted by: Guest on April-15-2021

Code answers related to "how to reset head of the local branch same as that of the origin"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language