HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

hg branch — Create or show a branch name. More information: <https://www.mercurial-scm.org/help/commands/branch>

Submitted by: @import:tldr-pages··
0
Viewed 0 times
createcommandbranchshowhg branchnameclimore

Problem

How to use the hg branch command: Create or show a branch name. More information: <https://www.mercurial-scm.org/help/commands/branch>.

Solution

hg branch — Create or show a branch name. More information: <https://www.mercurial-scm.org/help/commands/branch>.

Show the name of the currently active branch:
hg branch


Create a new branch for the next commit:
hg branch {{branch_name}}

Code Snippets

Show the name of the currently active branch

hg branch

Create a new branch for the next commit

hg branch {{branch_name}}

Context

tldr-pages: common/hg branch

Revisions (0)

No revisions yet.