git

创建分支并且切换: git checkout -b 分支名;

关联指令:git remote add origin 地址

关联远程分支指令(不然不能拉取或者推送):git branch --set-upstream-to=origin/remote_branch  your_branch

其中,origin/remote_branch是你本地分支对应的远程分支;your_branch是你当前的本地分支。

原文地址:https://www.cnblogs.com/jikeyi/p/13337705.html