分支查看:git branch
分支创建:git branch <branchName>
分支切换:git checkout <branchName>
分支拉取:git pull origin <branchName>
分支克隆:git clone -b <branchName> git@gitlab.alibaba-inc.com:xxx.git
分支提交:git add README.md
git commit -m"update readme file"
git push -u origin <branchName>
合并分支到主干:git checkout master
git merge <branchName>
git merge <branchName>
! [rejected] branchName -> branchName (non-fast-forward)
先执行下面操作:git fetch
git merge