-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbranch-man
56 lines (41 loc) · 1.13 KB
/
branch-man
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
.TH BRANCH 1 "March 2024" "5.0" "Automation Manual"
.SH NAME
branch \- create a new development branch
.SH SYNOPSIS
branch [-r] [-o <owner>] [-b <base-branch>] [-d <dev-branch>] <repository> <issue-number>
branch [-r] [-o <owner>] [-b <base-branch>] -d <dev-branch> <repository> --no-issue
branch -h
.SH DESCRIPTION
Creates a new development branch for a GitHub issue.
If the VS Code command: `code` is available, the project will be opened in VS Code.
.SH OPTIONS
.TP
-r
Reuse the current VS Code window.
.TP
-o <owner>
Owner of the repository.
Defaults to "SituDevelopment".
.TP
-b <base-branch>
Name of the branch from which to take the new branch.
Defaults to the repository's default branch.
.TP
-d <dev-branch>
Name of the new branch to create.
Defaults to being auto-generated by the issue number and title.
If `--no-issue` is specified, `dev-branch` is required.
.TP
<repository>
Name of the repository.
.TP
<issue-number>
Number of the issue for which the development branch is being created.
.TP
--no-issue
Create a development branch without an issue
.TP
-h
Display help and exit.
.SH AUTHOR
William Sawyer (william@situ.com.au)