原来在到家的时候,CI、CD工具已经集成好了,个人没有权限直接创建分支。只能根据需求去创建。
这样手动创建分支的命令长时间不用就忘了。现在整理下:
git clone http://XX.git
CD 到对应刚拉取的文件夹
$git status
会提示 On branch master
1创建分支:
$git checkout -b aaa
会提示:Switched to a new branch 'aaa'
这个命令=git branch branchName(创建分支),+git checkout branchName(切换分支)
2.把新建的分支push到远端
$git push origin aaa
3. 关联
$git branch --set-upstream-to=origin/aaa
习惯性的pull下