关于gitlab怎样merge request的流程

起因是我写了个功能要加到vc_batch项目的master里,在那之前要merge request一下给负责人review。

流程是先git remote,接着git clone那部分代码到本地,然后把我要加的文件夹移到vc_batch里面,cd到vc_batch文件夹里git add .

git checkout -b branchname,新建一个branch,此时git branch -a应该能看到master和branch俩分支而且当前在branch。git push origin branchname把master当前部分给到branch,然后git commit、git push即可。

-----------------------------------第二次使用进行更新-------------------------

这个git add .用途是把修改的内容加进git,所以好像add以后就能git commit了;然后再git push origin branchname(你自己的),就能在网页版看到修改后的新分支了。怎样拉代码到本地一搜就能搜到这里没写(https://blog.csdn.net/carfge/article/details/79691360)。

原文地址:https://www.cnblogs.com/AlphaWA/p/12533879.html