Sha256: 4e5be766091966055520637b4567f8f8b9560b8c3c0ec3b78b3d4a0f7aff1bdb

Contents?: true

Size: 1.48 KB

Versions: 32

Compression:

Stored size: 1.48 KB

Contents

git-squash-branch(1)
====================

NAME
----
git-squash-branch -
include::_git-squash-branch_desc.helper.txt[]

SYNOPSIS
--------
[verse]
'git squash-branch' [-m <message>]

DESCRIPTION
-----------

`git squash-branch` is a simple helper command. It takes all the commits on the
current branch from the 'merge_base' to HEAD, and reduces them to a single
commit. The new commit will contain a summary of all the commits which were
squashed, preceded by a header message indicating that it's the result of a
squash (or the message you pass on the command line.).

Squashing branches is useful when trying to rebase-update over branches which
were pushed to their upsteram (or committed by the 'Commit Queue'), and then
conflicting changes landed in upstream on top of the push/commit. If you know
that your branch was committed but linkgit:git-rebase-update[1] isn't able to
automatically clean it, you can squash the troublesome branch before `git
rebase-update`, and then when `git rebase-update` presents the conflict, you can
verify that the conflict diff is what you expected (and then skip it with
`git rebase --skip`).

OPTIONS
-------

-m <message>::
--message=<message>::
  Optional message to use for the first line of the squashed commit. If omitted,
  it defaults to "git squash commit for <branch>.".

EXAMPLE
-------
demo:1[]


include::_aliases.txt[]

----
[alias]
  git squash = squash-branch
----


SEE ALSO
--------
linkgit:git-rebase-update[1]

include::_footer.txt[]

// vim: ft=asciidoc:

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
libv8-8.4.255.0.1 vendor/depot_tools/man/src/git-squash-branch.txt
libv8-8.4.255.0 vendor/depot_tools/man/src/git-squash-branch.txt
libv8-7.8.279.23.0beta1 vendor/depot_tools/man/src/git-squash-branch.txt
libv8-7.4.288.28.0beta1 vendor/depot_tools/man/src/git-squash-branch.txt
libv8-7.3.492.27.3beta1 vendor/depot_tools/man/src/git-squash-branch.txt
libv8-7.3.492.27.1 vendor/depot_tools/man/src/git-squash-branch.txt
libv8-7.3.492.27.0 vendor/depot_tools/man/src/git-squash-branch.txt
libv8-7.3.492.27.0beta1 vendor/depot_tools/man/src/git-squash-branch.txt
libv8-6.7.288.46.1 vendor/depot_tools/man/src/git-squash-branch.txt
libv8-6.7.288.46.0 vendor/depot_tools/man/src/git-squash-branch.txt
libv8-6.7.288.46.1beta0 vendor/depot_tools/man/src/git-squash-branch.txt
libv8-6.3.292.48.1 vendor/depot_tools/man/src/git-squash-branch.txt
libv8-6.3.292.48.0 vendor/depot_tools/man/src/git-squash-branch.txt
libv8-6.3.292.48.0beta2 vendor/depot_tools/man/src/git-squash-branch.txt
libv8-6.3.292.48.0beta1 vendor/depot_tools/man/src/git-squash-branch.txt
libv8-6.2.414.42.1 vendor/depot_tools/man/src/git-squash-branch.txt
libv8-6.2.414.42.0 vendor/depot_tools/man/src/git-squash-branch.txt
libv8-6.2.414.42.0beta1 vendor/depot_tools/man/src/git-squash-branch.txt
libv8-6.0.286.54.3 vendor/depot_tools/man/src/git-squash-branch.txt
libv8-6.0.286.54.2 vendor/depot_tools/man/src/git-squash-branch.txt