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  )  本地分支关联远程分支

posted @ 2018-09-05 16:00  winyh  阅读(118)  评论(0编辑  收藏  举报