Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/smasher164/git-fixup
- Owner: smasher164
- License: mit
- Created: 2020-06-21T07:25:05.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-21T08:10:21.000Z (over 4 years ago)
- Last Synced: 2024-06-20T16:47:03.114Z (7 months ago)
- Language: Go
- Size: 1.95 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# git-fixup
```
$ go get -u akhil.cc/git-fixupusage:
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.