gitlab-org--gitlab-foss/doc/gitlab-basics/feature_branch_workflow.md

36 lines
595 B
Markdown
Raw Normal View History

---
disqus_identifier: 'https://docs.gitlab.com/ee/workflow/workflow.html'
---
# Feature branch workflow
1. Clone project:
```bash
git clone git@example.com:project-name.git
```
1. Create branch with your feature:
```bash
git checkout -b $feature_name
```
1. Write code. Commit changes:
```bash
git commit -am "My feature is ready"
```
1. Push your branch to GitLab:
```bash
git push origin $feature_name
```
1. Review your code on commits page.
1. Create a merge request.
1. Your team lead will review the code & merge it to the main branch.