Working with github/gitlab, using feature branches in many cases pull requests go out of date while waiting for a review and need to be rebased on top of the new target branch (master) after a while.
This will sometimes create conflicts that need to be solved.
After a rebase I would like to compare the old and the new branch in relation to the target branch, to verify no errors have been made while solving the conflicts. Meaning I would like to verify which lines are going to change after merging the new version of the PR.
So basically I would like to diff the result of git diff branch origin/master and git diff origin/branch origin/master - what changed in the diff output on the PR view of github/gitlab between the old and new versions.
Is there a command to do this?
git diff branch origin/branchdo the diff you want, given that you have rebasedbranch?