Geavanceerd Git
Amanda Crawford-Adamo
Software and Data Engineer
Past de wijzigingen van een specifieke commit toe op een andere branch
Eén commit cherry-picken
git cherry-pick <commit-hash>
Meerdere commits cherry-picken
git cherry-pick <hash1> <hash2> ..
Doel


Checkout naar de main-branch
git checkout main
Voer cherry-pick uit om wijzigingen van commit def456 uit feature te halen.
git cherry-pick def456

git add <resolved-files>--continuegit cherry-pick --continue
Gebruik de vlag --abort om te stoppen
git cherry-pick --abort
Geavanceerd Git