Github “Squash and Merge” - subsequent pull request showing all previous changes

后端 未结 2 1279
忘掉有多难
忘掉有多难 2021-02-20 05:14

I have a branch which I pulled from master branch. Let\'s call it integration.

In the integration branch, I made various commits (C1, C2, C3). When I am done, I made a

2条回答
  •  独厮守ぢ
    2021-02-20 05:52

    If I'm understanding your situation correct...

    The main thing you're doing wrong is continuing to use a branch after it has been merged. After you merge, delete the branch. Additional work should be on a new branch.

    The first "Squash and Merge" does not affect the integration branch; just how the integrated commits appear on the master branch. So, it makes sense that A, B, & C would still be there since you are reusing the old branch.

    Good luck.

提交回复
热议问题