網頁

2016年8月5日 星期五

[gitlab] how to merge request by gitlab

主題:
How to merge request by gitlab

步驟:
1. fork project on gitlab UI, and you will get a git respository location like: git@git.xxxx:[yourname]/[projectname].git
    gitlab -> select project -> fork
    
2. add respository
      git remote add upstream git@git.xxxx:[yourname]/[projectname].git

3. check if the repository is added
      git remote -v

4. fetch the repository
     git fetch upstream

5. push your commit to the repository instead of 'origin' repository
    git push upstream master

6. create merge request on gitlab UI
    gitlab -> select [merge requests] -> click [New merge request] ....

7. wait project owner to merge the code

8. delete the repository on gitlab UI