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