blob: 2060917d8cfdd68b75d999288e8e9bdd7d2195eb (
plain)
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
|
= gerrit create-branch
== NAME
gerrit create-branch - Create a new branch.
== SYNOPSIS
[verse]
--
_ssh_ -p <port> <host> _gerrit create-branch_
<PROJECT>
<NAME>
<REVISION>
--
== DESCRIPTION
Creates a new branch for a project.
== ACCESS
Caller should have link:access-control.html#category_create[Create Reference]
permission on the project.
Administrators do not automatically have permission to create branches. It must
be granted via the Create Reference permission.
== SCRIPTING
This command is intended to be used in scripts.
== OPTIONS
<PROJECT>::
Required; name of the project.
<NAME>::
Required; name of the branch to be created.
<REVISION>::
Required; base revision of the new branch.
== EXAMPLES
Create a new branch called 'newbranch' from the 'master' branch of
the project 'myproject'.
----
$ ssh -p 29418 review.example.com gerrit create-branch myproject newbranch master
----
GERRIT
------
Part of link:index.html[Gerrit Code Review]
SEARCHBOX
---------
|