I am working on a project and I made a PR to the project in github and now my PR says that
"This branch is out-of-date with the base branch , Merge the latest changes from master into this branch"
So which git command should I use in order to make my branch parallel to the master branch?
Update your pull request branch by rebasing When your pull request's branch is out of date with the base branch, you now have the option to update it by rebasing on the latest version of the base branch.
The message “Already up-to-date” means that all the changes from the branch you're trying to merge have already been merged to the branch you're currently on. More specifically it means that the branch you're trying to merge is a parent of your current branch.
If you created the Pull Request from a branch in the same project repository, then:
git checkout your-branch
git pull origin master
git push origin your-branch
to update the PR.If you forked a repo, created a branch and submit the PR, follow these steps:
git remote add upstream 'url.git.here'
git checkout your-branch
git pull upstream master
git push origin your-branch
out-of-date
is blocking your PR.After that, you should see that your PR is all good to be merge (after reviews is set).
Let me know if it helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With