赞
踩
经常需要从一个分支选择性的合并commit到另一个分支,具体可使用cherry-pick实现:
git cherry-pick commit_id
commit_id到commit_idn之间,包括两端
git cherry-pick commit_id..commit_idn
commit_id到commit_idn之间,非闭包
git cherry-pick (commit_id..commit_idn]
挑选多个commit:
git cherry-pick commit_id commit_idx commit_idy
git cherry-pick --continue
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。