blob: 2060917d8cfdd68b75d999288e8e9bdd7d2195eb [file] [log] [blame]
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08001= gerrit create-branch
Mani Chandel7ec4ac72013-12-10 14:50:33 +05302
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08003== NAME
David Shevitz9754a852018-09-24 09:46:23 -07004gerrit create-branch - Create a new branch.
Mani Chandel7ec4ac72013-12-10 14:50:33 +05305
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08006== SYNOPSIS
Michael Ochmanne2d76a12016-06-23 17:07:37 +02007[verse]
Mani Chandel7ec4ac72013-12-10 14:50:33 +05308--
Michael Ochmanne2d76a12016-06-23 17:07:37 +02009_ssh_ -p <port> <host> _gerrit create-branch_
Mani Chandel7ec4ac72013-12-10 14:50:33 +053010 <PROJECT>
11 <NAME>
12 <REVISION>
13--
14
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080015== DESCRIPTION
Mani Chandel7ec4ac72013-12-10 14:50:33 +053016Creates a new branch for a project.
17
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080018== ACCESS
Mani Chandel7ec4ac72013-12-10 14:50:33 +053019Caller should have link:access-control.html#category_create[Create Reference]
20permission on the project.
21
22Administrators do not automatically have permission to create branches. It must
23be granted via the Create Reference permission.
24
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080025== SCRIPTING
Mani Chandel7ec4ac72013-12-10 14:50:33 +053026This command is intended to be used in scripts.
27
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080028== OPTIONS
Mani Chandel7ec4ac72013-12-10 14:50:33 +053029<PROJECT>::
30 Required; name of the project.
31
32<NAME>::
33 Required; name of the branch to be created.
34
35<REVISION>::
36 Required; base revision of the new branch.
37
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080038== EXAMPLES
Mani Chandel7ec4ac72013-12-10 14:50:33 +053039Create a new branch called 'newbranch' from the 'master' branch of
40the project 'myproject'.
41
Michael Ochmannb99feab2016-07-06 14:10:22 +020042----
David Shevitz9754a852018-09-24 09:46:23 -070043$ ssh -p 29418 review.example.com gerrit create-branch myproject newbranch master
Michael Ochmannb99feab2016-07-06 14:10:22 +020044----
Mani Chandel7ec4ac72013-12-10 14:50:33 +053045
46GERRIT
47------
48Part of link:index.html[Gerrit Code Review]
49
50SEARCHBOX
51---------