Ever wished you could steal just one commit without dragging the entire messy branch with it?
Welcome to Git’s commit heist tool: git cherry-pick.





What actually happens?


Run:



git checkout main
git cherry-pick <commit-hash>





`

Git grabs the diff from <commit-hash> and replays it on main as a brand-new commit.
Same...