git-nav-downstream.1 3.31 KB
Newer Older
1 2 3 4
'\" t
.\"     Title: git-nav-downstream
.\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
5
.\"      Date: 12/15/2016
6
.\"    Manual: Chromium depot_tools Manual
7
.\"    Source: depot_tools f72f1ad
8 9
.\"  Language: English
.\"
10
.TH "GIT\-NAV\-DOWNSTREAM" "1" "12/15/2016" "depot_tools f72f1ad" "Chromium depot_tools Manual"
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
git-nav-downstream \- Checkout a downstream branch of the currently checked out branch\&.
.SH "SYNOPSIS"
.sp
.nf
\fIgit nav\-downstream\fR
.fi
.sp
.SH "DESCRIPTION"
.sp
\fIgit\-nav\-downstream\fR takes the current branch and discovers all branches downstream of it\&. If there is only one branch downstream of the current branch, the command will check that out\&. If there\*(Aqs more than one downstream branch, the command will prompt you with a selection of the branches\&.
.SH "EXAMPLE"
42 43
.sp

44 45 46 47 48 49
.sp
.if n \{\
.RS 4
.\}
.nf
\fB$ git map\-branches\fR
50
\fBorigin/master
51
\fR  cool_feature
52
    subfeature
53 54
  fixit
    frozen_branch
55
\fB$ git nav\-downstream\fR
56
Previous HEAD position was beec6f4\&.\&.\&. Make ReflectorImpl use mailboxes
57 58 59
Switched to branch \*(Aqcool_feature\*(Aq
Your branch is ahead of \*(Aqorigin/master\*(Aq by 4 commits\&.
  (use "git push" to publish your local commits)
60 61 62 63
Please select a downstream branch
  0\&. cool_feature
  1\&. fixit
Selection (0\-1)[0]: 0
64 65
\fB$ git map\-branches\fR
origin/master
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
\fB  cool_feature *
\fR    subfeature
  fixit
    frozen_branch
\fB$ git nav\-downstream\fR
Switched to branch \*(Aqsubfeature\*(Aq
Your branch and \*(Aqcool_feature\*(Aq have diverged,
and have 2 and 1 different commit each, respectively\&.
  (use "git pull" to merge the remote branch into yours)
\fB$ git map\-branches\fR
origin/master
  cool_feature
\fB    subfeature *
\fR  fixit
    frozen_branch
81 82 83 84 85
.fi
.if n \{\
.RE
.\}
.sp
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
.SH "SUGGESTED ALIASES"
.sp
Some common short\-hand aliases\&. Feel free to add these to your \fI~/\&.gitconfig\fR file\&.
.sp
.if n \{\
.RS 4
.\}
.nf
[alias]
  git down = nav\-downstream
.fi
.if n \{\
.RE
.\}
.sp
101 102 103 104 105
.SH "SEE ALSO"
.sp
\fBgit-map-branches\fR(1), \fBgit-nav-upstream\fR(1)
.SH "CHROMIUM DEPOT_TOOLS"
.sp
106
Part of the chromium \fBdepot_tools\fR(7) suite\&. These tools are meant to assist with the development of chromium and related projects\&. Download the tools from \m[blue]\fBhere\fR\m[]\&\s-2\u[1]\d\s+2\&.
107 108 109 110
.SH "NOTES"
.IP " 1." 4
here
.RS 4
111
\%https://chromium.googlesource.com/chromium/tools/depot_tools.git
112
.RE