gerrit/Documentation/cmd-create-branch.txt
Yuxuan 'fishy' Wang 61698b14e0 Use the new section title style in Asciidoctor.
We previous use the section title style like:

Section level 1
===============

Section level 2
---------------

Which have a problem in Asciidoctor that the number of "="s or "-"s must match
the number of characters in the header exactly, as a result it's easy to make
mistakes while changing the titles. Asciidoctor provides a better style like:

= Section level 1

== Section level 2

So we switched to this style.

Also fixed a bug in replace_macros.py, which will not cause any problem in the
old style.

Change-Id: I811dd7238735d98f662767c17086152cd69aea02
2013-12-20 12:55:51 -08:00

51 lines
993 B
Plaintext

= gerrit create-branch
== NAME
gerrit create-branch - Create a new branch
== SYNOPSIS
--
'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
---------