Git checkout remote branch

by Web全栈工程师 on 2015 年 04 月 27 日

/To fetch a branch, you simply need to:

git fetch origin

//This will fetch all of the remote branches for you. With the remote branches 
//in hand, you now need to check out the branch you are interested in, giving 
//you a local working copy:

git checkout -b test origin/test

//Or

git branch test origin/test

原创文章,转载请注明:转载自Web开发笔记 | Git checkout remote branch

本文链接地址:https://www.magentonotes.com/git-checkout-remote-branch.html

Comments on this entry are closed.

Previous post:

Next post: