create-branch.md 944 Bytes
Newer Older
1
---
Marcia Ramos's avatar
Marcia Ramos committed
2 3
stage: Create
group: Source Code
4
info: "To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments"
5 6 7
type: howto
---

8 9
# How to create a branch

10
A branch is an independent line of development in a [project](../user/project/index.md).
karen Carias's avatar
karen Carias committed
11

12
When you create a new branch (in your [terminal](start-using-git.md#create-a-branch) or with
13 14
[the web interface](../user/project/repository/web_editor.md#create-a-new-branch)),
you are creating a snapshot of a certain branch, usually the main `master` branch,
Tom Dyson's avatar
Tom Dyson committed
15
at its current state. From there, you can start to make your own changes without
16
affecting the main codebase. The history of your changes will be tracked in your branch.
17

18
When your changes are ready, you then merge them into the rest of the codebase with a
19
[merge request](../user/project/merge_requests/creating_merge_requests.md).