Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 14 days ago
JSON representation
Tool to squash the current branch/HEAD into a single rebased commit
- Host: GitHub
- URL: https://github.com/jnothman/git-squash
- Owner: jnothman
- License: bsd-2-clause
- Created: 2013-05-13T02:32:32.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-04-27T11:58:14.000Z (over 7 years ago)
- Last Synced: 2024-10-04T15:35:08.363Z (about 1 month ago)
- Language: Shell
- Size: 216 KB
- Stars: 15
- Watchers: 3
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
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``.