Advertisement
thesuhu

Git Merge Request

Jan 22nd, 2020
1,131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.43 KB | None | 0 0
  1. # Git command line merge request
  2.  
  3. # Step 1. Fetch and check out the branch for this merge request
  4.  
  5. git fetch origin
  6. git checkout -b "bug-fix" "origin/bug-fix"
  7.  
  8. # Step 2. Review the changes locally
  9.  
  10. # Step 3. Merge the branch and fix any conflicts that come up
  11.  
  12. git fetch origin
  13. git checkout "origin/development"
  14. git merge --no-ff "bug-fix"
  15.  
  16. # Step 4. Push the result of the merge to GitLab
  17.  
  18. git push origin "development"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement