pre-commit-rebase Always rebase your branches. Usage - repo: https://github.com/shakefu/pre-commit-rebase rev: v0.1.4 hooks: - id: rebase # Optionally specify the default branch, instead of discovering it # args: [main]