git 拉取指定分支
没有项目-直接拉取
git clone -b dev https://codeup.aliyun.com/62b3ddce98b10058fdb7b9ba/equipserver.git
git clone -b 远程分支名 仓库地址
存在项目-关联拉取
//查看本地和远程分支
$ git branch -a
* dev
main
master
remotes/origin/dev
remotes/origin/main
remotes/origin/master
//创建本地分支并关联
git checkout -b dev origin/dev
git checkout -b 本地分支 origin/远程分支
//已有本地分支创建关联
git branch --set-upstream-to origin/dev dev
git branch --set-upstream-to origin/远程分支名 本地分支名
//拉取
git pull
标签:origin,git,dev,拉取,本地,分支
From: https://www.cnblogs.com/tian777/p/17162698.html