Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jnothman/git-squash

Tool to squash the current branch/HEAD into a single rebased commit
https://github.com/jnothman/git-squash

Last synced: 2 months ago
JSON representation

Tool to squash the current branch/HEAD into a single rebased commit

Awesome Lists containing this project

README

        

git-squash
==========

Tool to squash the current branch/HEAD and rebase it onto a given commit.

Usage::

git squash [-m ]

This calls ``git rebase -i``, but automatically replaces all but the first
``pick`` entry with ``squash``.

If the rebase is trivial (e.g. _base_ is an ancestor of the current HEAD) and
does not require interactive conflict resolution, ``git squash`` can also set
the commit message.

Requirements: ``bash``, ``awk``, ``grep`` with PCRE support, and of course
``git`` >= 1.7.8, and a set ``EDITOR`` environment variable.

Installation: copy the git-squash file to a directory on your ``PATH`` and ``chmod +x``.