Git History Fixup

•
2.4k
•

Simplifies amending historical git commits by automating the fixup and autosquash rebase process.

gfix is a specialized git workflow utility designed to streamline the process of modifying commits deep in your branch's history. Instead of manually juggling interactive rebases, gfix automates the creation of fixup or amend commits and instantly folds them into the target SHA while preserving the working directory's state via stashing. It is particularly useful for maintaining a clean, logical commit history during code reviews or when fixing typos found in earlier work, ensuring that changes stay logically grouped without the risk of accidentally rewriting shared upstream history.

Key Features

012,387 GitHub stars
02Integrated stash and restore of unstaged changes
03Support for rewriting past commit messages with -m
04Safety guards to prevent rewriting shared history
05Automated fixup and autosquash rebase
06Automatic conflict handling and rebase management

Use Cases

01Maintaining a clean, logical commit history before opening a PR
02Addressing code review comments on specific past commits
03Fixing typos or bugs introduced several commits ago