2012-09-02 18:31:16 +02:00
|
|
|
%h3.page_title Workflow
|
2012-06-30 23:35:24 +02:00
|
|
|
.back_link
|
2012-09-02 18:31:16 +02:00
|
|
|
= link_to help_path do
|
2012-06-30 23:35:24 +02:00
|
|
|
← to index
|
2012-02-15 22:51:04 +01:00
|
|
|
%hr
|
|
|
|
|
|
|
|
%ol.help
|
|
|
|
%li
|
|
|
|
%p Clone project
|
|
|
|
.bash
|
2012-09-02 18:31:16 +02:00
|
|
|
%pre.dark
|
2012-02-15 22:51:04 +01:00
|
|
|
git clone git@example.com:project-name.git
|
|
|
|
|
|
|
|
%li
|
|
|
|
%p Create branch with your feature
|
|
|
|
.bash
|
2012-09-02 18:31:16 +02:00
|
|
|
%pre.dark
|
2012-02-15 22:51:04 +01:00
|
|
|
git checkout -b $feature_name
|
|
|
|
|
|
|
|
%li
|
|
|
|
%p Write code. Commit changes
|
|
|
|
.bash
|
2012-09-02 18:31:16 +02:00
|
|
|
%pre.dark
|
2012-02-15 22:51:04 +01:00
|
|
|
git commit -am "My feature is ready"
|
|
|
|
|
|
|
|
%li
|
|
|
|
%p Push your branch to gitlabhq
|
|
|
|
.bash
|
2012-09-02 18:31:16 +02:00
|
|
|
%pre.dark
|
2012-02-15 22:51:04 +01:00
|
|
|
git push origin $feature_name
|
|
|
|
|
2012-06-04 00:37:27 +02:00
|
|
|
%li
|
2012-02-15 22:51:04 +01:00
|
|
|
%p Review your code on Commits page
|
|
|
|
|
2012-06-04 00:37:27 +02:00
|
|
|
%li
|
2012-02-15 22:51:04 +01:00
|
|
|
%p Create a merge request
|
|
|
|
|
2012-06-04 00:37:27 +02:00
|
|
|
%li
|
2012-02-15 22:51:04 +01:00
|
|
|
%p Your team lead will review code & merge it to main branch
|
|
|
|
|