2019-10-28 02:06:30 -04:00
---
2020-07-29 08:09:45 -04:00
stage: Create
group: Source Code
2020-11-26 01:09:20 -05:00
info: "To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments"
2019-10-28 02:06:30 -04:00
disqus_identifier: 'https://docs.gitlab.com/ee/workflow/workflow.html'
---
2021-02-09 13:09:59 -05:00
# Feature branch workflow **(FREE)**
2019-10-28 02:06:30 -04:00
1. Clone project:
2020-01-30 10:09:15 -05:00
```shell
2019-10-28 02:06:30 -04:00
git clone git@example.com:project-name.git
```
1. Create branch with your feature:
2020-01-30 10:09:15 -05:00
```shell
2021-10-21 14:10:11 -04:00
git checkout -b feature_name
2019-10-28 02:06:30 -04:00
```
1. Write code. Commit changes:
2020-01-30 10:09:15 -05:00
```shell
2019-10-28 02:06:30 -04:00
git commit -am "My feature is ready"
```
1. Push your branch to GitLab:
2020-01-30 10:09:15 -05:00
```shell
2021-10-21 14:10:11 -04:00
git push origin feature_name
2019-10-28 02:06:30 -04:00
```
1. Review your code on commits page.
1. Create a merge request.
2021-03-08 13:09:12 -05:00
1. Your team lead reviews the code and merges it to the main branch.