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-分支-分支的新建与合并

创建与合并分支

本博客由博主原创,链接:https://www.cnblogs.com/WindyZ/
原文地址:https://www.cnblogs.com/WindyZ/p/10438381.html