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

Side by Side Diff: docs/man1/git-squash-branch.1

Issue 184253003: Add git-reup and friends (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@freeze_thaw
Patch Set: fix pylint Created 6 years, 8 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-reparent-branch.1 ('k') | docs/man1/git-thaw.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-squash-branch
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: 03/25/2014
6 .\" Manual: Chromium depot_tools Manual
7 .\" Source: depot_tools 207bff1
8 .\" Language: English
9 .\"
10 .TH "GIT\-SQUASH\-BRANCH" "1" "03/25/2014" "depot_tools 207bff1" "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-squash-branch \- Takes all commits in a single branch and replaces them with a single commit\&.
32 .SH "SYNOPSIS"
33 .sp
34 .nf
35 \fIgit squash\-branch\fR [\-m <message>]
36 .fi
37 .sp
38 .SH "DESCRIPTION"
39 .sp
40 git squash\-branch is a simple helper command\&. It takes all the commits on the current branch from the \fImerge_base\fR to HEAD, and reduces them to a single commit\&. The new commit will contain a summary of all the commits which were sq uashed, preceeded by a header message indicating that it\(cqs the result of a sq uash (or the message you pass on the command line\&.)\&.
41 .sp
42 Squashing branches is useful when trying to rebase\-update over branches which w ere pushed to their upsteram (or committed by the \fICommit Queue\fR), and then conflicting changes landed in upstream on top of the push/commit\&. If you know that your branch was committed but \fBgit-rebase-update\fR(1) isn\(cqt able to a utomatically clean it, you can squash the troublesome branch before git rebase\- update, and then when git rebase\-update presents the conflict, you can verify t hat the conflict diff is what you expected (and then skip it with git rebase \-\ -skip)\&.
43 .SH "OPTIONS"
44 .PP
45 \-m <message>, \-\-message=<message>
46 .RS 4
47 Optional message to use for the first line of the squashed commit\&. If omitted, it defaults to "git squash commit\&."\&.
48 .RE
49 .SH "EXAMPLE"
50 .sp
51 .if n \{\
52 .RS 4
53 .\}
54 .nf
55 \fB$ git map\fR
56 *\:\fB 7dcfe47 \fR (\:\fBfrozen_changes\fR\:) 2014\-03\-12 ~ FREEZE\&.unin dexed
57 * \fB4b0c180\fR 2014\-03\-12 ~ modfile
58 * \fB59a7cca\fR 2014\-03\-12 ~ a deleted file
59 * \fB6bec695\fR (\:origin/master\:) 2014\-03\-11 ~ Add neat feature \f B<(frozen_changes)\fR
60 * \fBd15a38a\fR 2014\-03\-11 ~ Epic README update
61 * \fBd559894\fR (\:\fBmaster\fR\:) 2014\-03\-11 ~ Important upstream chan ge
62 | * \fB9c311fd\fR (\:\fBcool_feature\fR\:) 2014\-03\-11 ~ Respond to CL com ments
63 | | * \fB2a1eeb2\fR (\:\fBsubfeature\fR\:) 2014\-03\-11 ~ integrate with Cool Service
64 | | * \fBd777af6\fR 2014\-03\-11 ~ slick commenting action
65 | |/
66 | * \fB265803a\fR 2014\-03\-11 ~ another improvement \fB<(subfeature)\fR
67 | * \fB6d831ac\fR (\:\fBspleen_tag\fR\:) 2014\-03\-11 ~ Refactor spleen
68 | * \fB82e74ab\fR 2014\-03\-11 ~ Add widget
69 |/
70 * \fBd08c5b3\fR (\:\fBbogus_noparent\fR\:) 2014\-03\-11 ~ Wonderful begin nings \fB<(cool_feature)\fR
71 \fB$ git squash\-branch "cool squash demo"\fR
72 \fB$ git map\fR
73 *\:\fB 2c81508 \fR (\:\fBfrozen_changes\fR\:) 2014\-03\-22 ~ cool squash d emo
74 * \fB6bec695\fR (\:origin/master\:) 2014\-03\-11 ~ Add neat feature \f B<(frozen_changes)\fR
75 * \fBd15a38a\fR 2014\-03\-11 ~ Epic README update
76 * \fBd559894\fR (\:\fBmaster\fR\:) 2014\-03\-11 ~ Important upstream chan ge
77 | * \fB9c311fd\fR (\:\fBcool_feature\fR\:) 2014\-03\-11 ~ Respond to CL com ments
78 | | * \fB2a1eeb2\fR (\:\fBsubfeature\fR\:) 2014\-03\-11 ~ integrate with Cool Service
79 | | * \fBd777af6\fR 2014\-03\-11 ~ slick commenting action
80 | |/
81 | * \fB265803a\fR 2014\-03\-11 ~ another improvement \fB<(subfeature)\fR
82 | * \fB6d831ac\fR (\:\fBspleen_tag\fR\:) 2014\-03\-11 ~ Refactor spleen
83 | * \fB82e74ab\fR 2014\-03\-11 ~ Add widget
84 |/
85 * \fBd08c5b3\fR (\:\fBbogus_noparent\fR\:) 2014\-03\-11 ~ Wonderful begin nings \fB<(cool_feature)\fR
86 .fi
87 .if n \{\
88 .RE
89 .\}
90 .sp
91 .SH "SUGGESTED ALIASES"
92 .sp
93 Some common short\-hand aliases\&. Feel free to add these to your \fI~/\&.gitcon fig\fR file\&.
94 .sp
95 .if n \{\
96 .RS 4
97 .\}
98 .nf
99 [alias]
100 git squash = squash\-branch
101 .fi
102 .if n \{\
103 .RE
104 .\}
105 .sp
106 .SH "SEE ALSO"
107 .sp
108 \fBgit-rebase-update\fR(1)
109 .SH "CHROMIUM DEPOT_TOOLS"
110 .sp
111 Part of the chromium \fBdepot_tools\fR(1) 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\&.
112 .SH "NOTES"
113 .IP " 1." 4
114 here
115 .RS 4
116 \%https://chromium.googlesource.com/chromium/tools/depot_tools.git
117 .RE
OLDNEW
« no previous file with comments | « docs/man1/git-reparent-branch.1 ('k') | docs/man1/git-thaw.1 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698