克隆指定分支的仓库 git clone -b 分支名 仓库地址 git clone -b dev https://github.com/username/test.git 转载于:https://www.cnblogs.com/xiaoyucoding/p/8150566.html