gitlab-org--gitlab-foss/doc/workflow/workflow.md

32 lines
519 B
Markdown
Raw Normal View History

2014-05-27 08:12:15 -04:00
# Workflow
2014-04-24 18:48:22 -04:00
1. Clone project:
2014-04-24 18:48:22 -04:00
```bash
git clone git@example.com:project-name.git
```
2014-04-24 18:48:22 -04:00
1. Create branch with your feature:
2014-04-24 18:48:22 -04:00
```bash
git checkout -b $feature_name
```
2014-04-24 18:48:22 -04:00
1. Write code. Commit changes:
2014-04-24 18:48:22 -04:00
```bash
git commit -am "My feature is ready"
```
2014-04-24 18:48:22 -04:00
1. Push your branch to GitLab:
2014-04-24 18:48:22 -04:00
```bash
git push origin $feature_name
```
2014-04-24 18:48:22 -04:00
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.