Step-by-step guide to safely undo Git commits using revert, reset and rebase. Learn when to use each method, handle merge conflicts, and avoid common mistakes with real examples.