Git branch: Difference between revisions
Jump to navigation
Jump to search
Line 14: | Line 14: | ||
=List Existing Branches= | =List Existing Branches= | ||
The local (topic) branches in the repository are displayed by executing [[#Overview|git branch]] without any argument, or with the default --list argument: | The [[Git_Concepts#Local_.28Topic.29_Branch|local (topic) branches]] in the repository are displayed by executing [[#Overview|git branch]] without any argument, or with the default --list argument: | ||
git branch [--list] | git branch [--list] |
Revision as of 21:19, 19 March 2018
Internal
Overview
git branch is used to perform branch-related operations: listing existing branches, creating new local and remote branches, renaming branches and deleting branches.
Use git checkout to check out the content of a branch in the local work area.
For a description of the concepts behind Git branches, see:
List Existing Branches
The local (topic) branches in the repository are displayed by executing git branch without any argument, or with the default --list argument:
git branch [--list]