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

hub branch — Create a branch or show current branch. See also: `git branch`.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
currentcreatecommandbranchshowclihub branch

Problem

How to use the hub branch command: Create a branch or show current branch. See also: git branch.

Solution

hub branch — Create a branch or show current branch. See also: git branch.

Show the name of the currently active branch:
hub branch


Create a new branch:
hub branch {{branch_name}}

Code Snippets

Show the name of the currently active branch

hub branch

Create a new branch

hub branch {{branch_name}}

Context

tldr-pages: common/hub branch

Revisions (0)

No revisions yet.