Cherry-Picking Commits
# Apply specific commit from feature branch directly into main
git switch main
git cherry-pick 7f9a12c
# Split or edit historical commits with interactive rebase
git rebase -i HEAD~5
Port individual commits across branches and rewrite commit histories with surgical precision.
# Apply specific commit from feature branch directly into main
git switch main
git cherry-pick 7f9a12c
# Split or edit historical commits with interactive rebase
git rebase -i HEAD~5