git cherry-pick 詳解 —— Git 學習筆記 18

git cherry-pick 詳解 初識 git cherry-pick(揀選) 揀選會提取某次提交的補丁,之後嘗試將其重新應用到當前分支上。 這種方式在你只想引入特性分支中的某個提交時很有用。 假設你的項目提交歷史如下: 如果你希望將提交 e43a6 拉取到 master 分支,你可以運行: # 當前處於 master 分支 $ git cherry-pick e43a6 Finished
相關文章
相關標籤/搜索