当你的leader告知你需要协助完成项目,你应该下载源代码,开启分支,上传仓库,并发起合并请求
- 从gitlab上将项目拷贝下来
git clone http://XXXXXXXXXXX.git
- 创建新分支
git branch wt
代码完成之后,如何push到远程gitlab上
打开gitbash,然后确定已经进入了自己的分支
使用commit语句进行提交,提交到仓库
git commit -am 'add interface codes of both broadband and iptv '
使用push语句,这里我的本地分支名称为wt,因此最后一个参数是wt,显示已经push了新的分支
git push origin wt
Counting objects: 26, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (21/21), done.
Writing objects: 100% (26/26), 2.86 KiB | 488.00 KiB/s, done.
Total 26 (delta 9), reused 0 (delta 0)
To http://10.142.78.33:8080/fanshunguo/identity.git
* [new branch] wenting -> wenting
打开项目的网页,进入自己的主页,然后找到刚刚push的分支,选择添加新的merge request,之后提交这个融合请求即可