git-fixup - commits staged changes as an autosquashable fixup
git fixup [(-a|--all)] [(-u|--update)]
[(-b|--message-body) message-body] [commit]
git fixup (-h|--help)
git fixup (-v|--version)
git-fixup is a shortcut for committing staged changes as an autosquashable fixup. The commit message starts with "fixup!" and ends with the last commit's message. The changes can then be autosquashed using an interactive rebase.
While git-commit does include a --fixup=<commit> option, using it consecutively without getting commit messages with multiple "fixup!" entries is more tedious than it should be.
Use commit's subject for the fixup message.
-b|--message-body message-bodyThe message body to use in the fixup commit. It will go away when the fixup occurs but can be useful for traceability until that point.
-a|--allStage all files before making the fixup commit.
-u|--updateStage tracked files before making the fixup commit.
-h|--helpPrint a simple help message.
-v|--versionPrint version.