Answers for "get a remote branch in local"

10

pull remote branches

git fetch origin
git checkout --track origin/<remote_branch_name>
Posted by: Guest on May-25-2020
0

oevrride localwith remote branch

git reset --hard origin/master
Posted by: Guest on August-12-2020
5

create local and remote branch

git checkout -b yourBranchName
git push -u origin yourBanchName
Posted by: Guest on April-27-2020
7

git fetch remote branch

git checkout --track origin/branch_name
Posted by: Guest on April-24-2020
15

get a remote branch git

$ git checkout --track origin/newsletter
Branch newsletter set up to track remote branch newsletter from origin.
Switched to a new branch 'newsletter'
Posted by: Guest on March-13-2020

Code answers related to "get a remote branch in local"

Browse Popular Code Answers by Language