How do I backport a commit in git?

前端 未结 5 1995
说谎
说谎 2020-12-08 03:54

So, I have a maintenance branch and a master branch in my project. If I make a commit in the maintenance branch and want to merge it forward to the master branch, that\'s ea

5条回答
  •  暖寄归人
    2020-12-08 04:48

    This is exactly the use case for git-cherry-pick

    git checkout maintenance
    git cherry-pick 
    

提交回复
热议问题