How to merge a specific commit in Git

后端 未结 7 1314
攒了一身酷
攒了一身酷 2020-11-22 01:41

I have forked a branch from a repository in GitHub and committed something specific to me. Now I found the original repository had a good feature which was at HEAD

7条回答
  •  有刺的猬
    2020-11-22 01:57

    Let's say you want to merge commit e27af03 from branch X to master.

    git checkout master
    git cherry-pick e27af03
    git push
    

提交回复
热议问题