Reference the web editor docs in GitLab basics "Create a branch"

This commit is contained in:
Achilleas Pipinellis 2016-10-11 07:21:47 +02:00
parent ec102fe8f1
commit 54642e5245
3 changed files with 9 additions and 36 deletions

View File

@ -2,38 +2,11 @@
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 someones 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.
New commits are recorded in the history for the current branch, which results
in taking the source from someones 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.
To add changes to your GitLab project, you should create a branch. You can do it in your [shell](basic-git-commands.md) or in GitLab.
To create a new branch in GitLab, sign in and then select a project on the right side of your screen:
![Select a project](img/select_project.png)
Click on "commits" on the menu on the left side of your screen:
![Commits](img/commits.png)
Click on the "branches" tab:
![Branches](img/branches.png)
Click on the "new branch" button on the right side of the screen:
![New branch](img/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)
1. On the "create from" space, add the the name of the branch you want to branch off from
1. Click on the button "create branch"
![Branch info](img/branch_info.png)
### Note:
You will be able to find and select the name of your branch in the white box next to a project's name:
![Branch name](img/branch_name.png)
To add changes to your GitLab project, you should create a branch. You can do
it in your [terminal](basic-git-commands.md) or by
[using the web interface](../user/project/repository/web_editor.md#create-a-new-branch).

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@ -97,11 +97,11 @@ There are multiple ways to create a branch from GitLab's web interface.
In case your development workflow dictates to have an issue for every merge
request, you can quickly create a branch right on the issue page which will be
tied with the issue itself. You can see a **New Branch** button after the issue
tied with the issue itself. You can see a **New branch** button after the issue
description, unless there is already a branch with the same name or a referenced
merge request.
![New Branch Button](img/new_branch_from_issue.png)
![New Branch Button](img/web_editor_new_branch_from_issue.png)
Once you click it, a new branch will be created that diverges from the default
branch of your project, by default `master`. The branch name will be based on