Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 git-squash-branch(1) | |
| 2 ==================== | |
| 3 | |
| 4 NAME | |
| 5 ---- | |
| 6 git-squash-branch - | |
| 7 include::_git-squash-branch_desc.helper.txt[] | |
| 8 | |
| 9 SYNOPSIS | |
| 10 -------- | |
| 11 [verse] | |
| 12 'git squash-branch' [<header message>] | |
|
agable
2014/03/25 19:37:23
Preferably 'git squash-branch -m <header message>'
iannucci
2014/03/26 01:39:49
Done.
| |
| 13 | |
| 14 DESCRIPTION | |
| 15 ----------- | |
| 16 | |
| 17 `git squash-branch` is a simple helper command. It takes all the commits on the | |
| 18 current branch from the 'merge_base' to HEAD, and reduces them to a single | |
| 19 commit. The new commit will contain a summary of all the commits which were | |
| 20 squashed, preceeded by an optional header message. | |
| 21 | |
| 22 Squashing branches is useful when trying to rebase-update over branches which | |
| 23 were pushed to their upsteram (or committed by the 'Commit Queue'), and then | |
| 24 conflicting changes landed in upstream on top of the push/commit. If you know | |
| 25 that your branch was committed but linkgit:git-rebase-update[1] isn't able to | |
| 26 automatically clean it, you can squash the troublesome branch before `git | |
| 27 rebase-update`, and then when `git rebase-update` presents the conflict, you can | |
| 28 verify that the conflict diff is what you expected (and then skip it with | |
| 29 `git rebase --skip`). | |
| 30 | |
| 31 OPTIONS | |
| 32 ------- | |
| 33 | |
| 34 <header message>:: | |
| 35 Optional message to use for the first line of the squashed commit. If om itted, | |
| 36 it defaults to "git squash commit.". | |
| 37 | |
| 38 EXAMPLE | |
| 39 ------- | |
| 40 | |
| 41 [subs="specialcharacters,quotes,attributes"] | |
| 42 ---- | |
| 43 [white]**$ git map** | |
| 44 [white blue-background]##\*##{zwsp}[blue-background red]** 7dcfe47 ** [gre en]##(##{zwsp}[aqua]**frozen_changes**{zwsp}[green]##)## [yellow]##2014-03-12## \~ FREEZE.unindexed | |
| 45 * [red]**4b0c180** [yellow]##2014-03-12## \~ modfile | |
| 46 * [red]**59a7cca** [yellow]##2014-03-12## \~ a deleted file | |
| 47 * [red]**6bec695** [green]##(##{zwsp}[red]##origin/master##{zwsp}[green]# #)## [yellow]##2014-03-11## \~ Add neat feature [white]**<(frozen_changes)** | |
| 48 * [red]**d15a38a** [yellow]##2014-03-11## \~ Epic README update | |
| 49 * [red]**d559894** [green]##(##{zwsp}[lime]**master**{zwsp}[green]##)## [ yellow]##2014-03-11## \~ Important upstream change | |
| 50 [red]##|## * [red]**9c311fd** [green]##(##{zwsp}[lime]**cool_feature**{zwsp }[green]##)## [yellow]##2014-03-11## \~ Respond to CL comments | |
| 51 [red]##|## [green]##|## * [red]**2a1eeb2** [green]##(##{zwsp}[lime]**subfeatu re**{zwsp}[green]##)## [yellow]##2014-03-11## \~ integrate with CoolService | |
| 52 [red]##|## [green]##|## * [red]**d777af6** [yellow]##2014-03-11## \~ slick co mmenting action | |
| 53 [red]##|## [green]##|/## | |
| 54 [red]##|## * [red]**265803a** [yellow]##2014-03-11## \~ another improvement [white]**<(subfeature)** | |
| 55 [red]##|## * [red]**6d831ac** [green]##(##{zwsp}[fuchsia]**spleen_tag**{zws p}[green]##)## [yellow]##2014-03-11## \~ Refactor spleen | |
| 56 [red]##|## * [red]**82e74ab** [yellow]##2014-03-11## \~ Add widget | |
| 57 [red]##|/## | |
| 58 * [red]**d08c5b3** [green]##(##{zwsp}[lime]**bogus_noparent**{zwsp}[green ]##)## [yellow]##2014-03-11## \~ Wonderful beginnings [white]**<(cool_feature )** | |
| 59 [white]**$ git squash-branch "cool squash demo"** | |
| 60 [white]**$ git map** | |
| 61 [white blue-background]##*##{zwsp}[blue-background red]** 2c81508 ** [gree n]##(##{zwsp}[aqua]**frozen_changes**{zwsp}[green]##)## [yellow]##2014-03-22## \ ~ cool squash demo | |
| 62 * [red]**6bec695** [green]##(##{zwsp}[red]##origin/master##{zwsp}[green]# #)## [yellow]##2014-03-11## \~ Add neat feature [white]**<(frozen_changes)** | |
| 63 * [red]**d15a38a** [yellow]##2014-03-11## \~ Epic README update | |
| 64 * [red]**d559894** [green]##(##{zwsp}[lime]**master**{zwsp}[green]##)## [ yellow]##2014-03-11## \~ Important upstream change | |
| 65 [red]##|## * [red]**9c311fd** [green]##(##{zwsp}[lime]**cool_feature**{zwsp }[green]##)## [yellow]##2014-03-11## \~ Respond to CL comments | |
| 66 [red]##|## [green]##|## * [red]**2a1eeb2** [green]##(##{zwsp}[lime]**subfeatu re**{zwsp}[green]##)## [yellow]##2014-03-11## \~ integrate with CoolService | |
| 67 [red]##|## [green]##|## * [red]**d777af6** [yellow]##2014-03-11## \~ slick co mmenting action | |
| 68 [red]##|## [green]##|/## | |
| 69 [red]##|## * [red]**265803a** [yellow]##2014-03-11## \~ another improvement [white]**<(subfeature)** | |
| 70 [red]##|## * [red]**6d831ac** [green]##(##{zwsp}[fuchsia]**spleen_tag**{zws p}[green]##)## [yellow]##2014-03-11## \~ Refactor spleen | |
| 71 [red]##|## * [red]**82e74ab** [yellow]##2014-03-11## \~ Add widget | |
| 72 [red]##|/## | |
| 73 * [red]**d08c5b3** [green]##(##{zwsp}[lime]**bogus_noparent**{zwsp}[green ]##)## [yellow]##2014-03-11## ~ Wonderful beginnings [white]**<(cool_feature) ** | |
| 74 ---- | |
| 75 | |
| 76 include::_aliases.txt[] | |
| 77 | |
| 78 ---- | |
| 79 [alias] | |
| 80 git squash = squash-branch | |
| 81 ---- | |
| 82 | |
| 83 | |
| 84 SEE ALSO | |
| 85 -------- | |
| 86 linkgit:git-rebase-update[1] | |
| 87 | |
| 88 include::_footer.txt[] | |
| 89 | |
| 90 // vim: ft=asciidoc noexpandtab: | |
| OLD | NEW |