본문 바로가기

노력/회사

깃 일부 변경 사항만 master에 적용하기

프로젝트를 진행하다 보면 일부 변경사항만 master(운영) 브랜치에 적용해야 하는 경우가 생긴다.

 

https://stackoverflow.com/questions/29393875/how-to-cherry-pick-from-branch-a-to-branch-b-on-a-system-without-history

 

How to cherry pick from branch A to branch B on a system without history?

Suppose I have a new system with no git history and I take a fresh checkout of branch A. Branch A already has a commit C1 which I did yesterday from some other system. Now I want to cherry-pick this

stackoverflow.com

cherry-pick을 사용하면 일부만 가져와서 master에 적용할 수 있습니다.