How to copy commits from one branch to another?

前端 未结 9 1459
猫巷女王i
猫巷女王i 2020-11-27 09:08

I\'ve got two branches from my master:

  • v2.1: (version 2) I\'ve been working on for several months
  • wss: that I create
9条回答
  •  一向
    一向 (楼主)
    2020-11-27 09:34

    For the simple case of just copying the last commit from branch wss to v2.1, you can simply grab the commit id (git log --oneline | head -n 1) and do:

    git checkout v2.1
    git merge 
    

提交回复
热议问题