Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 48efb11

Browse files
author
Andreia Gaita
authored
Merge pull request #832 from github-for-unity/docs/branches
Add docs for managing branches
2 parents b3d5752 + e22295d commit 48efb11

File tree

9 files changed

+62
-0
lines changed

9 files changed

+62
-0
lines changed
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

docs/using/images/name-branch.png

Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

docs/using/managing-branches.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Managing branches
2+
3+
Initial **Branches** view
4+
5+
<img src="images/branches-initial-view.png" alt="Post commit view"/>
6+
7+
## Create branch
8+
9+
1. From the **Branches** view, click on `master` under local branches to enable the `New Branch` button and be able to create a new branch from master.
10+
2. Click on `New Branch`.
11+
<img src="images/create-new-branch-view.png" alt="Post commit view"/>
12+
13+
3. Enter a name for the branch and click `Create`.
14+
<img src="images/name-branch.png" alt="Post commit view"/>
15+
16+
4. The new branch will be created from master.
17+
<img src="images/new-branch-created.png" alt="Post commit view"/>
18+
19+
## Checkout branch
20+
21+
1. Right-click on a local branch and select `Switch` or double-click on the branch to switch to it.
22+
<img src="images/switch-or-delete.png" alt="Post commit view"/>
23+
24+
2. A dialog will appear asking `Switch branch to 'branch name'?`. Select `Switch`.
25+
<img src="images/switch-confirmation.png" alt="Post commit view"/>
26+
27+
The branch will be checked out.
28+
<img src="images/switched-branches.png" alt="Post commit view"/>
29+
30+
## Delete branches
31+
32+
1. Click on the branch name to be deleted and the `Delete` button becomes enabled.
33+
2. Right-click on a local branch and select `Delete` or click the `Delete` button above the Local branches list.
34+
<img src="images/switch-or-delete.png" alt="Post commit view"/>
35+
36+
3. A dialog appears asking `Are you sure you want to delete the branch: 'branch name'?`. Select `Delete`.
37+
38+
The branch will be deleted.

0 commit comments

Comments
 (0)