Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(759)

Side by Side Diff: docs/man1/git-nav-upstream.1

Issue 259863004: Move docs folder to man. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « docs/man1/git-nav-downstream.1 ('k') | docs/man1/git-new-branch.1 » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 '\" t
2 .\" Title: git-nav-upstream
3 .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
5 .\" Date: 04/10/2014
6 .\" Manual: Chromium depot_tools Manual
7 .\" Source: depot_tools 1ce0237
8 .\" Language: English
9 .\"
10 .TH "GIT\-NAV\-UPSTREAM" "1" "04/10/2014" "depot_tools 1ce0237" "Chromium depot_ tools Manual"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 .ie \n(.g .ds Aq \(aq
19 .el .ds Aq '
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
24 .nh
25 .\" disable justification (adjust text to left margin only)
26 .ad l
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
30 .SH "NAME"
31 git-nav-upstream \- Checkout the upstream branch of the currently checked out br anch\&.
32 .SH "SYNOPSIS"
33 .sp
34 .nf
35 \fIgit nav\-upstream\fR
36 .fi
37 .sp
38 .SH "DESCRIPTION"
39 .sp
40 \fIgit\-nav\-upstream\fR takes the current branch, finds it\*(Aqs upstream branc h, and checks that out\&.
41 .SH "EXAMPLE"
42 .sp
43
44 .sp
45 .if n \{\
46 .RS 4
47 .\}
48 .nf
49 \fB$ git map\-branches\fR
50 origin/master
51 cool_feature
52 \fB subfeature *
53 \fR fixit
54 frozen_branch
55 \fB$ git nav\-upstream\fR
56 Switched to branch \*(Aqcool_feature\*(Aq
57 Your branch is ahead of \*(Aqorigin/master\*(Aq by 4 commits\&.
58 (use "git push" to publish your local commits)
59 \fB$ git map\-branches\fR
60 origin/master
61 \fB cool_feature *
62 \fR subfeature
63 fixit
64 frozen_branch
65 \fB$ git nav\-upstream\fR
66 Note: checking out \*(Aqorigin/master\*(Aq\&.
67
68 You are in \*(Aqdetached HEAD\*(Aq state\&. You can look around, make experiment al \fB(1)\fR
69 changes and commit them, and you can discard any commits you make in this
70 state without impacting any branches by performing another checkout\&.
71
72 If you want to create a new branch to retain commits you create, you may
73 do so (now or later) by using \-b with the checkout command again\&. Example:
74
75 git checkout \-b new_branch_name
76
77 HEAD is now at beec6f4\&.\&.\&. Make ReflectorImpl use mailboxes
78 \fB$ git map\-branches\fR
79 \fBorigin/master *
80 \fR cool_feature
81 subfeature
82 fixit
83 frozen_branch
84 .fi
85 .if n \{\
86 .RE
87 .\}
88 .sp
89 1\&. Note that being in a \fIdetached HEAD\fR state is OK\&. You\(cqll just want to create a \fBgit-new-branch\fR(1) from here\&.
90 .SH "SUGGESTED ALIASES"
91 .sp
92 Some common short\-hand aliases\&. Feel free to add these to your \fI~/\&.gitcon fig\fR file\&.
93 .sp
94 .if n \{\
95 .RS 4
96 .\}
97 .nf
98 [alias]
99 git up = nav\-upstream
100 .fi
101 .if n \{\
102 .RE
103 .\}
104 .sp
105 .SH "SEE ALSO"
106 .sp
107 \fBgit-map-branches\fR(1), \fBgit-nav-downstream\fR(1)
108 .SH "CHROMIUM DEPOT_TOOLS"
109 .sp
110 Part of the chromium \fBdepot_tools\fR(7) suite\&. These tools are meant to assi st with the development of chromium and related projects\&. Download the tools f rom \m[blue]\fBhere\fR\m[]\&\s-2\u[1]\d\s+2\&.
111 .SH "NOTES"
112 .IP " 1." 4
113 here
114 .RS 4
115 \%https://chromium.googlesource.com/chromium/tools/depot_tools.git
116 .RE
OLDNEW
« no previous file with comments | « docs/man1/git-nav-downstream.1 ('k') | docs/man1/git-new-branch.1 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698