Interactive rebase (git rebase -i) tiħallak tikteb mill-ġdid, tordna, tgħaqqad, tmodifika, jew taħżen commits — tinfakkarx l-istorja tal-commits qabel ma taqsimha. Hija għodda qawwa għal ħolqien ta' istorja ċara u loġika minn commits li jqabbdu xogħol.\n\n## Li tibda interactive rebase\n\n```bash
git rebase -i HEAD~4 # interactively rebase the last 4 commits
git rebase -i <commit> # rebase commits after <commit>
→ opens an editor listing the commits with actions to apply
text pick abc123 Add login form # keep the commit as-is squash def456 Fix typo # COMBINE into the previous commit (merge messages) fixup ghi789 Fix another typo # combine into previous, DISCARD this message reword jkl012 Add validation # keep the commit but EDIT its message edit mno345 Refactor auth # PAUSE to amend the commit (change content) drop pqr678 Debug logging # DELETE this commit entirely
