blob: 671adfeef519dd59ec0371cfb6ec56b31ab5be6e [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
Mani Chandel7ec4ac72013-12-10 14:50:33 +05304gerrit create-branch - Create a new branch
5
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08006== SYNOPSIS
Mani Chandel7ec4ac72013-12-10 14:50:33 +05307--
8'ssh' -p <port> <host> 'gerrit create-branch'
9 <PROJECT>
10 <NAME>
11 <REVISION>
12--
13
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080014== DESCRIPTION
Mani Chandel7ec4ac72013-12-10 14:50:33 +053015Creates a new branch for a project.
16
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080017== ACCESS
Mani Chandel7ec4ac72013-12-10 14:50:33 +053018Caller should have link:access-control.html#category_create[Create Reference]
19permission on the project.
20
21Administrators do not automatically have permission to create branches. It must
22be granted via the Create Reference permission.
23
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080024== SCRIPTING
Mani Chandel7ec4ac72013-12-10 14:50:33 +053025This command is intended to be used in scripts.
26
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080027== OPTIONS
Mani Chandel7ec4ac72013-12-10 14:50:33 +053028<PROJECT>::
29 Required; name of the project.
30
31<NAME>::
32 Required; name of the branch to be created.
33
34<REVISION>::
35 Required; base revision of the new branch.
36
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080037== EXAMPLES
Mani Chandel7ec4ac72013-12-10 14:50:33 +053038Create a new branch called 'newbranch' from the 'master' branch of
39the project 'myproject'.
40
41====
42 $ ssh -p 29418 review.example.com gerrit create-branch myproject newbranch master
43====
44
45GERRIT
46------
47Part of link:index.html[Gerrit Code Review]
48
49SEARCHBOX
50---------