debian-mirror-gitlab/doc/gitlab-basics/create-branch.md

20 lines
955 B
Markdown
Raw Normal View History

2019-10-12 21:52:04 +05:30
---
2020-10-24 23:57:45 +05:30
stage: Create
group: Source Code
2021-02-22 17:27:13 +05:30
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-10-12 21:52:04 +05:30
type: howto
---
2021-03-11 19:13:27 +05:30
# How to create a branch **(FREE)**
2015-09-11 14:41:01 +05:30
2019-10-12 21:52:04 +05:30
A branch is an independent line of development in a [project](../user/project/index.md).
2015-09-11 14:41:01 +05:30
2021-03-08 18:12:59 +05:30
When you create a new branch (in your [terminal](start-using-git.md#create-a-branch) or with
2019-10-12 21:52:04 +05:30
[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,
2021-01-03 14:25:43 +05:30
at its current state. From there, you can start to make your own changes without
2019-10-12 21:52:04 +05:30
affecting the main codebase. The history of your changes will be tracked in your branch.
2016-11-03 12:29:30 +05:30
2019-10-12 21:52:04 +05:30
When your changes are ready, you then merge them into the rest of the codebase with a
2021-01-03 14:25:43 +05:30
[merge request](../user/project/merge_requests/creating_merge_requests.md).