고급 Git
Amanda Crawford-Adamo
Software and Data Engineer
특정 커밋의 변경을 다른 브랜치에 적용합니다
단일 커밋 체리 픽
git cherry-pick <commit-hash>
여러 커밋 체리 픽
git cherry-pick <hash1> <hash2> ..
목적


main 브랜치 체크아웃
git checkout main
feature 브랜치의 커밋 def456 변경을 체리 픽합니다.
git cherry-pick def456

git add <resolved-files>--continue 플래그로 체리 픽을 계속합니다git cherry-pick --continue
체리 픽을 중단하려면 --abort 플래그를 사용합니다
git cherry-pick --abort
고급 Git