-
Notifications
You must be signed in to change notification settings - Fork 648
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 fetch origingit checkout mastergit pullgit checkout release-20xx.x.xgit pullgit rebase origin/mastergit checkout your-branchgit pullgit rebase origin/release-20xx.x.xgit push --force-with-lease