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

17 lines
681 B
Markdown
Raw Normal View History

2019-10-12 21:52:04 +05:30
---
type: howto
---
2015-09-11 14:41:01 +05:30
# How to create a branch
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
2019-10-12 21:52:04 +05:30
When you create a new branch (in your [terminal](basic-git-commands.md) or with
[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,
at it's current state. From there, you can start to make your own changes without
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
[merge request](add-merge-request.md).