Reputation: 429
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?
Upvotes: 36
Views: 86064
Reputation: 1067
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).
Upvotes: 45