bia.migueis
bia.migueis

Reputation: 2016

How to update pull request after master has changed

I have a master branch and 2 side branches. branch1 has its own commits and the commits from branch2 but branch2 does not have commits from branch1. I merged PR from branch2 into master. Somehow the PR from branch1 to master still shows branch2 commits as being part of the diff. If I just compare branch1 with master i dont see those commits. How do I update the PR to show the same thing that the diff does?

Upvotes: 1

Views: 646

Answers (1)

Theresa Luu
Theresa Luu

Reputation: 33

I sometimes run into something similar to this on GitHub but when I do a

git diff branch_1..branch_2

on the branches in question, the changes that I know are already on the branch in question are not highlighted as diffs. I don't know why the issue happens, but sometimes when I close the PR and open another one, it acts as expected.

Without knowing the timeline of changes on both of your branches, it's hard to tell if there is something wrong with your local git history or if it is a Github issue.

Upvotes: 1

Related Questions