git rebase --interactive (reword / squash / fixup / autosquash)¶
DevOps workflow: refine feature branches before PR merge; clean atomic commits for bisect and audit.
git rebase -i HEAD~Nrewordto edit messages;squash/fixupto collapse;execfor CI checks.git commit --fixup=<sha>+git rebase -i --autosquashfor automated staging.- Use
--rebase-mergesfor complex branch topologies.