Answers for "change bran to its remote head git"

11

git replace local branch with remote

git reset --hard origin/master
Posted by: Guest on November-22-2019
1

switch to remote branch git

# creates a branch called some_branch
# switches to this newly created branch
# pulls changes from the origin remote branch
git checkout -b some_branch origin/some_branch
Posted by: Guest on September-02-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language