mirror of
https://github.com/TeachBooks/manual.git
synced 2026-11-13 14:55:51 +00:00
branches
This commit is contained in:
parent
f2db5de663
commit
93090ee2d6
3 changed files with 109 additions and 131 deletions
22
book/workflows/new_branch_gitlab.md
Normal file
22
book/workflows/new_branch_gitlab.md
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
1. Navigate to the repository of your project. Under the project description, you should see a menu button with a "+" in it. Click this button, then click on "New branch".
|
||||
|
||||
```{figure} ../images/gitlab-branch.png
|
||||
|
||||
Click the highlighted button to make a new branch.
|
||||
```
|
||||
|
||||
2. A new page opens, on which you can specify the name of your branch and the source branch. Try to think of a good name for your branch. For example, `chapter-2` is a suitable name if we're going to be working on Chapter 2 of our book. After you've made sure that the selected source branch is correct, click "Create branch".
|
||||
|
||||
```{figure} ../images/gitlab-branch-name.png
|
||||
---
|
||||
width: 80%
|
||||
---
|
||||
We're making a new branch called `chapter-2` from the `main` branch.
|
||||
```
|
||||
|
||||
3. You should be sent back to an overview page of your repository. In the branch selection menu, it should now say `chapter-2` instead of `main`.
|
||||
|
||||
```{figure} ../images/gitlab-new-branch-repo.png
|
||||
|
||||
The circled menu is the branch selection menu.
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue