blob: f444173add2d7c05124a82d0bf54c90ba059f745 [file] [log] [blame]
Dariusz Luksza55750212015-03-04 16:28:30 +01001= gerrit set-head
2
3== NAME
4gerrit set-head - Change a project's HEAD.
5
6== SYNOPSIS
Michael Ochmanne2d76a12016-06-23 17:07:37 +02007[verse]
Dariusz Luksza55750212015-03-04 16:28:30 +01008--
Michael Ochmanne2d76a12016-06-23 17:07:37 +02009_ssh_ -p <port> <host> _gerrit set-head_ <NAME>
Dariusz Luksza55750212015-03-04 16:28:30 +010010 --new-head <REF>
11--
12
13== DESCRIPTION
14Modifies a given project's HEAD reference.
15
16The command is argument-safe, that is, if no argument is given the
17previous settings are kept intact.
18
19== ACCESS
20Caller must be an owner of the given project.
21
22== SCRIPTING
23This command is intended to be used in scripts.
24
25== OPTIONS
Dariusz Luksza1e00beb2015-03-05 09:48:48 +010026<NAME>::
Dariusz Luksza55750212015-03-04 16:28:30 +010027 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
35Change HEAD of project `example` to `stable-2.11` branch:
36
Michael Ochmannb99feab2016-07-06 14:10:22 +020037----
Dariusz Luksza55750212015-03-04 16:28:30 +010038 $ ssh -p 29418 review.example.com gerrit set-head example --new-head stable-2.11
Michael Ochmannb99feab2016-07-06 14:10:22 +020039----
Dariusz Luksza55750212015-03-04 16:28:30 +010040
41GERRIT
42------
43Part of link:index.html[Gerrit Code Review]
44
45SEARCHBOX
46---------