Merge, update, and pull Git branches without using checkouts

前端 未结 17 1414
臣服心动
臣服心动 2020-11-22 07:42

I work on a project that has 2 branches, A and B. I typically work on branch A, and merge stuff from branch B. For the merging, I would typically do:

git mer         


        
17条回答
  •  臣服心动
    2020-11-22 08:31

    Enter git-forward-merge:

    Without needing to checkout destination, git-forward-merge merges source into destination branch.

    https://github.com/schuyler1d/git-forward-merge

    Only works for automatic merges, if there are conflicts you need to use the regular merge.

提交回复
热议问题