1.1 KiB
1.1 KiB
| stage | group | info |
|---|---|---|
| Create | Source Code | To determine the technical writer assigned to the Stage/Group associated with this page, see https://handbook.gitlab.com/handbook/product/ux/technical-writing/#assignments |
Feature branch workflow (FREE ALL)
To merge changes from a local branch to a feature branch, follow this workflow.
-
Clone the project if you haven't already:
git clone git@example.com:project-name.git -
Change directories so you are in the project directory.
-
Create a branch for your feature:
git checkout -b feature_name -
Write code for the feature.
-
Add the code to the staging area and add a commit message for your changes:
git commit -am "My feature is ready" -
Push your branch to GitLab:
git push origin feature_name -
Review your code: On the left sidebar, go to Code > Commits.
-
Your team lead reviews the code and merges it to the main branch.