| gerrit set-head - Change a project's HEAD. |
| _ssh_ -p <port> <host> _gerrit set-head_ <NAME> |
| Modifies a given project's HEAD reference. |
| The command is argument-safe, that is, if no argument is given the |
| previous settings are kept intact. |
| Caller must be an owner of the given project. |
| This command is intended to be used in scripts. |
| Required; name of the project to change the HEAD. If name ends |
| with `.git` the suffix will be automatically removed. |
| Required; name of the ref that should be set as new HEAD. The |
| 'refs/heads/' prefix can be omitted. |
| Change HEAD of project `example` to `stable-2.11` branch: |
| $ ssh -p 29418 review.example.com gerrit set-head example --new-head stable-2.11 |
| Part of link:index.html[Gerrit Code Review] |