Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 1 | = gerrit create-branch |
Mani Chandel | 7ec4ac7 | 2013-12-10 14:50:33 +0530 | [diff] [blame] | 2 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 3 | == NAME |
Mani Chandel | 7ec4ac7 | 2013-12-10 14:50:33 +0530 | [diff] [blame] | 4 | gerrit create-branch - Create a new branch |
| 5 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 6 | == SYNOPSIS |
Mani Chandel | 7ec4ac7 | 2013-12-10 14:50:33 +0530 | [diff] [blame] | 7 | -- |
| 8 | 'ssh' -p <port> <host> 'gerrit create-branch' |
| 9 | <PROJECT> |
| 10 | <NAME> |
| 11 | <REVISION> |
| 12 | -- |
| 13 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 14 | == DESCRIPTION |
Mani Chandel | 7ec4ac7 | 2013-12-10 14:50:33 +0530 | [diff] [blame] | 15 | Creates a new branch for a project. |
| 16 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 17 | == ACCESS |
Mani Chandel | 7ec4ac7 | 2013-12-10 14:50:33 +0530 | [diff] [blame] | 18 | Caller should have link:access-control.html#category_create[Create Reference] |
| 19 | permission on the project. |
| 20 | |
| 21 | Administrators do not automatically have permission to create branches. It must |
| 22 | be granted via the Create Reference permission. |
| 23 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 24 | == SCRIPTING |
Mani Chandel | 7ec4ac7 | 2013-12-10 14:50:33 +0530 | [diff] [blame] | 25 | This command is intended to be used in scripts. |
| 26 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 27 | == OPTIONS |
Mani Chandel | 7ec4ac7 | 2013-12-10 14:50:33 +0530 | [diff] [blame] | 28 | <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' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 37 | == EXAMPLES |
Mani Chandel | 7ec4ac7 | 2013-12-10 14:50:33 +0530 | [diff] [blame] | 38 | Create a new branch called 'newbranch' from the 'master' branch of |
| 39 | the project 'myproject'. |
| 40 | |
| 41 | ==== |
| 42 | $ ssh -p 29418 review.example.com gerrit create-branch myproject newbranch master |
| 43 | ==== |
| 44 | |
| 45 | GERRIT |
| 46 | ------ |
| 47 | Part of link:index.html[Gerrit Code Review] |
| 48 | |
| 49 | SEARCHBOX |
| 50 | --------- |