Github Comparison View for 2 branches is incorrect?

前端 未结 3 1909
[愿得一人]
[愿得一人] 2020-12-25 10:22

When I do a Github comparison view between master and another branch A, Github seems to be comparing the HEAD version of A with an old

3条回答
  •  失恋的感觉
    2020-12-25 10:54

    Just another thought. If you want to create a pull request from the diff between your work and the head of the master branch (as per o.p.), then what you need to do is to firstly rebase your own branch off the master branch git rebase and then make the pull request.

    But you typically don't need to do this, Git is very clever with merges and will normally be able to add your work in to the master branch as you want it added, even if you don't rebase first.

提交回复
热议问题