git 创建分支并关联远程分支

前提是远程已经建立了需要关联的分支

git checkout -b dev(本地分支名称) origin/dev(远程分支名称)
原文地址:https://www.cnblogs.com/shiazhen/p/13023409.html