Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/smasher164/git-fixup

squash last N commits non-interactively
https://github.com/smasher164/git-fixup

Last synced: about 2 months ago
JSON representation

squash last N commits non-interactively

Awesome Lists containing this project

README

        

# git-fixup

```
$ go get -u akhil.cc/git-fixup

usage:
git-fixup [--root] [HEAD~N]
git-fixup edit filename
```
Squash the last N commits of the current branch into a single commit. This
tool automatically performs an interactive rebase for you with either
`HEAD~N`, to specify the last N commits, or `--root` to go to the initial
commit. For instance, if `git fixup HEAD~3` is specified, it automatically
applies the following:
```
reword AAAAAAA Message
fixup BBBBBBB Message
fixup CCCCCCC Message
```
This gives you a chance to reword the oldest of the N commits.

`git-fixup edit` is the entrypoint for the `GIT_SEQUENCE_EDITOR` that applies
edits to the interactive rebase on your behalf.