Skip to content

Files

Latest commit

91d56b3 · May 27, 2022

History

History

git-fixup

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
May 21, 2022
May 27, 2022

README.md

git fixup

Fix a commit by amending it

Git alias:

fixup = "!f() { \
    TARGET=$(git rev-parse \"$1\"); \
    git commit --fixup=$TARGET && \
    GIT_EDITOR=true git rebase --interactive --autosquash $TARGET~; \
}; f"

Example:

```shell
git fixup

See https://blog.filippo.io/git-fixup-amending-an-older-commit/

This alias is a slightly modified version.