Algocraft / Git Commands / git rebase
Replay your branch's commits onto a new base, one by one — every replayed commit gets a brand-new hash
-i) lets you reorder, squash, or edit commits as they replaypush --force-with-leasegit rebase --abort puts you right back where you started