Feature branch workflow
-
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 & merge it to the main branch.