엄지월드

git cherry-pick (특정 커밋의 소스를 받아오기) 본문

Server&DevOps/Git

git cherry-pick (특정 커밋의 소스를 받아오기)

킨글 2020. 2. 14. 19:06
반응형

git cherry-pick이란 다른 브랜치에 있는 커밋을 선택적으로 내 브랜치에 적용시킬 때 사용하는 명령어이다. 

명령어는 다음과 같다.

 

git cheery-pick <commit_hash1> <commit_hash2>

=> Ex) git cherry-pick cb99c0b cfa1c0b, git cherry-pick cb99c0b

 

 

 

Comments