Choose a different branch in github

In github there are different branch for different version.

Therefore choose the right branch is essential.

I choose gr-ieee802-11 as example:

sudo git clone git://github.com/bastibl/gr-ieee802-11.git --branch master

or

git branch
git checkout -b master origin/master
git branch

update code: git pull

 

Reference

How to download a branch with git?

创建与合并分支--廖雪峰的官方网站

Git-分支-分支的新建与合并

创建与合并分支

posted @ 2019-02-26 16:44  WindyZ  阅读(167)  评论(0编辑  收藏  举报