git cherry-pick to another branch

后端 未结 4 1100
深忆病人
深忆病人 2020-12-06 16:24

I wonder if there is the way to copy one commit to another branch without checking out that branch.

For example, I have two branches: master and p

4条回答
  •  独厮守ぢ
    2020-12-06 17:08

    That's not possible - simply imagine what would happen if there was a conflict that couldn't be resolved automatically. For the same reason you also can't update branches that are not currently checked-out (even if a fast-forward was possible).

提交回复
热议问题