Interactive Rebase, Merge, or Cherry-Pick: Choosing How to Clean Up Local Git History
Decide between interactive rebase, merge, and cherry-pick based on one constraint — whether the branch is shared — then squash a feature branch safely and verify the result with log, diff, and reflog.