git 分支

1.本地新建分支 git branch chezhan_theme

2.本地切换分支 git checkout chezhan_theme

3.(远程没有匹配分支时) git push origin chezhan_theme (自动新建远程分支)

4.本地分支和远程分支关联追踪 git branch --set-upstream-to=origin/chezhan_theme

5.本地在新建分支上就可以git pull  或者git push 操作了。

(       git branch --set-upstream-to origin/new_branch new_branch  )  本地分支关联远程分支

原文地址:https://www.cnblogs.com/winyh/p/9592626.html