Dariusz Luksza | 5575021 | 2015-03-04 16:28:30 +0100 | [diff] [blame] | 1 | = gerrit set-head |
| 2 | |
| 3 | == NAME |
| 4 | gerrit set-head - Change a project's HEAD. |
| 5 | |
| 6 | == SYNOPSIS |
Michael Ochmann | e2d76a1 | 2016-06-23 17:07:37 +0200 | [diff] [blame] | 7 | [verse] |
Dariusz Luksza | 5575021 | 2015-03-04 16:28:30 +0100 | [diff] [blame] | 8 | -- |
Michael Ochmann | e2d76a1 | 2016-06-23 17:07:37 +0200 | [diff] [blame] | 9 | _ssh_ -p <port> <host> _gerrit set-head_ <NAME> |
Dariusz Luksza | 5575021 | 2015-03-04 16:28:30 +0100 | [diff] [blame] | 10 | --new-head <REF> |
| 11 | -- |
| 12 | |
| 13 | == DESCRIPTION |
| 14 | Modifies a given project's HEAD reference. |
| 15 | |
| 16 | The command is argument-safe, that is, if no argument is given the |
| 17 | previous settings are kept intact. |
| 18 | |
| 19 | == ACCESS |
| 20 | Caller must be an owner of the given project. |
| 21 | |
| 22 | == SCRIPTING |
| 23 | This command is intended to be used in scripts. |
| 24 | |
| 25 | == OPTIONS |
Dariusz Luksza | 1e00beb | 2015-03-05 09:48:48 +0100 | [diff] [blame] | 26 | <NAME>:: |
Dariusz Luksza | 5575021 | 2015-03-04 16:28:30 +0100 | [diff] [blame] | 27 | Required; name of the project to change the HEAD. If name ends |
| 28 | with `.git` the suffix will be automatically removed. |
| 29 | |
| 30 | --new-head:: |
| 31 | Required; name of the ref that should be set as new HEAD. The |
| 32 | 'refs/heads/' prefix can be omitted. |
| 33 | |
| 34 | == EXAMPLES |
| 35 | Change HEAD of project `example` to `stable-2.11` branch: |
| 36 | |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 37 | ---- |
Dariusz Luksza | 5575021 | 2015-03-04 16:28:30 +0100 | [diff] [blame] | 38 | $ ssh -p 29418 review.example.com gerrit set-head example --new-head stable-2.11 |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 39 | ---- |
Dariusz Luksza | 5575021 | 2015-03-04 16:28:30 +0100 | [diff] [blame] | 40 | |
| 41 | GERRIT |
| 42 | ------ |
| 43 | Part of link:index.html[Gerrit Code Review] |
| 44 | |
| 45 | SEARCHBOX |
| 46 | --------- |