首页 > git > 拉取远程分支作为本地分支

拉取远程分支作为本地分支

来源:原创 作者:thomas 分类:git 阅读:996 日期:2014-05-22

十日谈技术博客

To fetch a branch, you simply need to:

git fetch origin

This will fetch all of the remote branches for you. You can see the branches available for checkout with:

git branch -v -a

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

 

热门文章 更多>

微信扫一扫,关注技术十日谈