Create a branch

Create a branchΒΆ

There are two ways to create a branch, using CLI or using the web UI.

To create a branch using CLI:

git push <remote> <localref>:<remotebranch>


  • <remote> is the name of your Gerrit remote or the full remote URL.
  • <localref> is the refname; this can be a branch or something else.
  • <remotebranch> is the name of the branch you want created.

To create a branch using the web UI:

  1. Ensure you are a core reviewer.
  2. Go to
  3. In the Project menu, click Branches.
  4. Enter a new branch name and click the Create branch button. You can leave the Initial revision field blank.

See also

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.