Feature branch workflow
- Clone project:
bash
git clone git@example.com:project-name.git
- Create branch with your feature:
bash
git checkout -b $feature_name
- Write code. Commit changes:
bash
git commit -am "My feature is ready"
- Push your branch to GitLab:
bash
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.