TL;DR — Quick Summary

git absorb automatically creates fixup commits and rebases them. Stage changes, run git absorb — it figures out which commit each hunk belongs to. Magic.

git absorb knows where your changes go. Stage fixes, run absorb — automatic fixup commits.

Installation

# macOS
brew install git-absorb

# Cargo
cargo install git-absorb

Usage

# Stage your fixes
git add -p

# Create fixup commits automatically
git absorb

# Create fixup AND rebase in one step
git absorb --and-rebase

# Dry run (preview what would happen)
git absorb --dry-run

# Limit to last N commits
git absorb --base HEAD~10

Summary

  • git absorb auto-creates fixup! commits for staged changes
  • Automatically matches hunks to the right commit
  • —and-rebase to absorb + interactive rebase in one step
  • Dry run mode for safety
  • Written in Rust — fast analysis