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 reviews the code and merges it to the main branch.