mirror of
https://github.com/TeachBooks/manual.git
synced 2026-11-12 22:35:51 +00:00
37 lines
No EOL
1.3 KiB
Markdown
37 lines
No EOL
1.3 KiB
Markdown
How to branch is demonstrated in the figure below, all steps are elaborated on in the following step-by-step tutorial.
|
|
|
|
```{figure} figures/branching-github-ezgif.com-optimize.gif
|
|
|
|
Demonstration, video available [here](https://youtu.be/3ceMSLQpD70)
|
|
```
|
|
|
|
1. Open the repository in which you want to work in. In the top bar you will see your current branch `main` and next to that there is a tab called `Branches`.
|
|
|
|
```{figure} figures/NewBranch_GitHub.PNG
|
|
|
|
Overview
|
|
```
|
|
|
|
2. Clicking on `Branches` will bring you to an overview of all the branches in the repository. Click on the green `Create Branch` button.
|
|
|
|
```{figure} figures/NewBranch_GitHub2.PNG
|
|
|
|
Overview Branches
|
|
```
|
|
|
|
3. Finally, give your branch a name and specifiy the source branch. <br>
|
|
Tip: It makes sense to give the branch a name related to the content you will be creating or altering.
|
|
|
|
```{figure} figures/NewBranch_GitHub3.PNG
|
|
---
|
|
width: 60%
|
|
---
|
|
New Branch
|
|
```
|
|
|
|
4. You will find your new branch in the drop down menu as seen on the figure below. You can then select your new branch and start working in it (new version) but you can also work in any other branch if you are helping out a colleague with their chapter for example (existing version).
|
|
|
|
```{figure} figures/NewBranch_GitHub4.PNG
|
|
|
|
Select New Branch
|
|
``` |