What is a back-merge

前端 未结 3 588
不知归路
不知归路 2021-02-05 11:06

I’ve watched some videos on the git-flow scripts and one term that comes up is “back merge” - e.g. hotfix is merged into master and back merged into develop.

I’m assumin

3条回答
  •  北海茫月
    2021-02-05 11:14

    It's just two ordinary merge commands:

    git checkout master
    git merge hotfix
    git checkout develop
    git merge hotfix
    

    You can think of the "normal" flow of commits being from your development branch to master as the work is completed. In a back-merge, the commits are flowing in the opposite direction, from hotfix into your development branch.

提交回复
热议问题