diff options
author | Junio C Hamano <junio@hera.kernel.org> | 2008-07-15 15:49:03 +0000 |
---|---|---|
committer | Junio C Hamano <junio@hera.kernel.org> | 2008-07-15 15:49:03 +0000 |
commit | 38ddcce0c19a8eedec7a98bd291f65b2127a82b9 (patch) | |
tree | bc44e0dbf17d91c4eec1fdc57bafcec5a15f74dc /git-branch.txt | |
parent | c4b18dd00515b271e8b4e4725ce0d19c4ca41636 (diff) | |
download | git-htmldocs-38ddcce0c19a8eedec7a98bd291f65b2127a82b9.tar.gz |
Autogenerated HTML docs for v1.5.6.3-350-g6c11a
Diffstat (limited to 'git-branch.txt')
-rw-r--r-- | git-branch.txt | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/git-branch.txt b/git-branch.txt index b3e62ed01..fc5a4a602 100644 --- a/git-branch.txt +++ b/git-branch.txt @@ -8,24 +8,27 @@ git-branch - List, create, or delete branches SYNOPSIS -------- [verse] -'git branch' [--color | --no-color] [-r | -a] [--merged | --no-merged] - [-v [--abbrev=<length> | --no-abbrev]] - [--contains <commit>] +'git branch' [--color | --no-color] [-r | -a] + [-v [--abbrev=<length> | --no-abbrev]] + [(--merged | --no-merged | --contains) [<commit>]] 'git branch' [--track | --no-track] [-l] [-f] <branchname> [<start-point>] 'git branch' (-m | -M) [<oldbranch>] <newbranch> 'git branch' (-d | -D) [-r] <branchname>... DESCRIPTION ----------- -With no arguments given a list of existing branches -will be shown, the current branch will be highlighted with an asterisk. -Option `-r` causes the remote-tracking branches to be listed, -and option `-a` shows both. -With `--contains <commit>`, shows only the branches that -contains the named commit (in other words, the branches whose -tip commits are descendant of the named commit). -With `--merged`, only branches merged into HEAD will be listed, and -with `--no-merged` only branches not merged into HEAD will be listed. + +With no arguments, existing branches are listed, the current branch will +be highlighted with an asterisk. Option `-r` causes the remote-tracking +branches to be listed, and option `-a` shows both. + +With `--contains`, shows only the branches that contains the named commit +(in other words, the branches whose tip commits are descendant of the +named commit). With `--merged`, only branches merged into the named +commit (i.e. the branches whose tip commits are reachable from the named +commit) will be listed. With `--no-merged` only branches not merged into +the named commit will be listed. Missing <commit> argument defaults to +'HEAD' (i.e. the tip of the current branch). In its second form, a new branch named <branchname> will be created. It will start out with a head equal to the one given as <start-point>. |