本文共 463 字,大约阅读时间需要 1 分钟。
克隆远程代码:
git clone git@gitlab.mobvista.com:ml-platform/ml-xxx.git
创建分支:
cd ml-xxxgit checkout -b 17-helloworld
这相当于创建并切换到了17-helloworld
分支下,git branch
检测已经不在master
下
更新提交分支代码:
git add .git commit -m "submit info"git push origin 17-helloworld
这样将本地分支推送到了远程仓库
以gitlab为例, 打开你的仓库, 点击左边的merge request然后点击new merge request创建一个MR
然后选择你要创建MR的分支, 和需要合并的分支 接着填写MR的标题和内容, 还有一些描述信息,选择Assignee,@需要review的人,选择删除源分支,合并到的master分支, 点击提交就可以创建一个MR了转载地址:http://gcxgj.baihongyu.com/