Taking One Fix Into a Release Branch
A bug fix was committed on main. You need only that fix on release/2.4, not the rest of main. What do you do?
main
release/2.4
Choose one answer
git checkout main -- . while on release/2.4, then commit the result
git checkout main -- .
git rebase main release/2.4
git cherry-pick <fix-commit> while on release/2.4
git cherry-pick <fix-commit>
git merge main while on release/2.4
git merge main