2019-07-30 05:02:59 +00:00
---
2020-07-29 12:09:45 +00:00
stage: Create
group: Source Code
2020-11-26 06:09:20 +00:00
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"
2019-07-30 05:02:59 +00:00
type: howto
---
2021-02-09 18:09:59 +00:00
# How to create a branch **(FREE)**
2015-07-09 22:33:42 +00:00
2019-07-30 05:02:59 +00:00
A branch is an independent line of development in a [project ](../user/project/index.md ).
2015-07-21 22:45:12 +00:00
2020-12-23 12:10:26 +00:00
When you create a new branch (in your [terminal ](start-using-git.md#create-a-branch ) or with
2019-07-30 05:02:59 +00:00
[the web interface ](../user/project/repository/web_editor.md#create-a-new-branch )),
2021-05-20 18:10:33 +00:00
you are creating a snapshot of a certain branch, usually the main branch,
2020-10-15 18:08:43 +00:00
at its current state. From there, you can start to make your own changes without
2021-03-08 18:09:12 +00:00
affecting the main codebase. The history of your changes is tracked in your branch.
2016-10-11 05:21:47 +00:00
2019-07-30 05:02:59 +00:00
When your changes are ready, you then merge them into the rest of the codebase with a
2020-09-28 06:09:56 +00:00
[merge request ](../user/project/merge_requests/creating_merge_requests.md ).