-
Notifications
You must be signed in to change notification settings - Fork 639
Troubleshooting
Jakub Vul edited this page May 28, 2019
·
14 revisions
This most often happens if you branch off of one branch, but then create a PR into a different branch. For example, you branch off of master
but then target your PR at a release-20xx.x.x
branch. It happens because master
and the release branch have different commits in them.
To fix this, you will rebase the release branch against master
, and then rebase your branch against the release branch.
git checkout master
git pull
git checkout release-20xx.x.x
git pull
git rebase origin/master
git checkout your-branch
git pull
git rebase origin/release-20xx.x.x
git push --force-with-lease