gerrit/Documentation/cmd-create-branch.txt
Michael Ochmann b99feabd88 Fix formatting of example blocks
With the new stylesheet example blocks (delimited with ====) are
rendered as rather intrusive boxes with large padding in yellow
and grey.

This patch replaces the example blocks with simple code blocks
(delimited with ----) that better match the overall style of the
documentation.

Change-Id: Id95387cdb153332c2066e2d5e378697647dbca52
Signed-off-by: Michael Ochmann <michael.ochmann@sap.com>
2016-07-07 14:06:31 +02:00

52 lines
1001 B
Plaintext

= gerrit create-branch
== NAME
gerrit create-branch - Create a new branch
== SYNOPSIS
[verse]
--
_ssh_ -p <port> <host> _gerrit create-branch_
<PROJECT>
<NAME>
<REVISION>
--
== DESCRIPTION
Creates a new branch for a project.
== ACCESS
Caller should have link:access-control.html#category_create[Create Reference]
permission on the project.
Administrators do not automatically have permission to create branches. It must
be granted via the Create Reference permission.
== SCRIPTING
This command is intended to be used in scripts.
== OPTIONS
<PROJECT>::
Required; name of the project.
<NAME>::
Required; name of the branch to be created.
<REVISION>::
Required; base revision of the new branch.
== EXAMPLES
Create a new branch called 'newbranch' from the 'master' branch of
the project 'myproject'.
----
$ ssh -p 29418 review.example.com gerrit create-branch myproject newbranch master
----
GERRIT
------
Part of link:index.html[Gerrit Code Review]
SEARCHBOX
---------