2014-02-13 05:55:46 -05:00
|
|
|
1. Clone project
|
|
|
|
|
|
|
|
```bash
|
|
|
|
git clone git@example.com:project-name.git
|
|
|
|
```
|
2014-03-31 12:10:20 -04:00
|
|
|
|
2014-02-13 05:55:46 -05:00
|
|
|
2. Create branch with your feature
|
|
|
|
|
|
|
|
```bash
|
|
|
|
git checkout -b $feature_name
|
|
|
|
```
|
|
|
|
|
2014-03-31 12:10:20 -04:00
|
|
|
3. Write code. Commit changes
|
2014-02-13 05:55:46 -05:00
|
|
|
|
|
|
|
```bash
|
|
|
|
git commit -am "My feature is ready"
|
|
|
|
```
|
|
|
|
|
|
|
|
4. Push your branch to GitLab
|
2014-03-31 12:10:20 -04:00
|
|
|
|
2014-02-13 05:55:46 -05:00
|
|
|
```bash
|
|
|
|
git push origin $feature_name
|
|
|
|
```
|
|
|
|
|
2014-03-31 12:10:20 -04:00
|
|
|
5. Review your code on commits page
|
2014-02-13 05:55:46 -05:00
|
|
|
6. Create a merge request
|
|
|
|
7. Your team lead will review the code & merge it to the main branch
|