只克隆git仓库中的一个旁支

只克隆git仓库中的一个分支

如果想要只克隆git仓库中的一个分支,那么执行下面的命令即可。

 git clone -b <branch> <remote_repo>