1. git-fixup(1)
  2. git-fixup(1)

NAME

git-fixup - commits staged changes as an autosquashable fixup

SYNOPSIS

git fixup [(-a|--all)] [(-u|--update)]
          [(-b|--message-body) message-body] [commit]
git fixup (-h|--help)
git fixup (-v|--version)

CHANGES

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.

OPTIONS

commit

Use commit's subject for the fixup message.

-b|--message-body message-body

The 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|--all

Stage all files before making the fixup commit.

-u|--update

Stage tracked files before making the fixup commit.

-h|--help

Print a simple help message.

-v|--version

Print version.

SEE ALSO

git-commit(1)

  1. August 2015
  2. git-fixup(1)