2015-07-09 22:33:42 +00:00
# How to create a branch
2015-07-10 23:09:52 +00:00
A branch is an independent line of development.
New commits are recorded in the history for the current branch, which results in taking the source from someone’ s repository (the place where the history of your work is stored) at certain point in time, and apply your own changes to it in the history of the project.
2015-07-09 22:33:42 +00:00
2015-07-10 23:09:52 +00:00
To add changes to your GitLab project, you should create a branch. You can do it in your shell or in [GitLab.com ](https://gitlab.com ).
2015-07-09 22:33:42 +00:00
2015-07-10 23:09:52 +00:00
To create a new branch in [GitLab.com ](https://gitlab.com ), sign in and then select a project on the right side of your screen:
2015-07-09 22:33:42 +00:00
![Select a project ](basicsimages/select_project.png )
Click on "commits" on the menu on the left side of your screen:
![Commits ](basicsimages/commits.png )
Click on the "branches" tab:
![Branches ](basicsimages/branches.png )
Click on the "new branch" button on the right side of the screen:
![New branch ](basicsimages/newbranch.png )
Fill out the information required:
1. Add a name for your new branch (you can't add spaces, so you can use hyphens or underscores)
2015-07-10 23:09:52 +00:00
1. On the "create from" space, add the the name of the branch you want to branch off from
2015-07-09 22:33:42 +00:00
1. Click on the button "create branch"
![Branch info ](basicsimages/branch_info.png )
After you created a new branch, click on the files on which you'll be working.
You will be able to find and select the name of your branch in the white box next to the project's name:
![Branch name ](basicsimages/branch_name.png )