Skip to content

Instantly share code, notes, and snippets.

@reyabreu
Created September 28, 2018 14:12
Show Gist options
  • Save reyabreu/0f083257390e76fe315438ba16a9f43c to your computer and use it in GitHub Desktop.
Save reyabreu/0f083257390e76fe315438ba16a9f43c to your computer and use it in GitHub Desktop.
Feature branch workflow on GitLab

Clone project:

git clone git@example.com:project-name.git

Create branch with your feature:

git checkout -b $feature_name

Write code. Commit changes:

git commit -am "My feature is ready"

Push your branch to GitLab:

git push origin $feature_name

  • Review your code on commits page.
  • Create a merge request.
  • Your team lead will review the code
  • When approved, merge it to the main branch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment