mirror of
https://github.com/TeachBooks/manual.git
synced 2026-11-13 06:45:52 +00:00
branches
This commit is contained in:
parent
f2db5de663
commit
93090ee2d6
3 changed files with 109 additions and 131 deletions
39
book/workflows/new_branch_github.md
Normal file
39
book/workflows/new_branch_github.md
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
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
|
||||
---
|
||||
name: branching_demo
|
||||
---
|
||||
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
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue