I'm sending in a pull request but the repo owner is rejecting it because my master is out of sync. I'm not sure how to bring it into sync.
I did a git pull to merge the original repo and my forked repo. Then I fixed any merge conflicts.
git pull upstream master
Not sure if this is fully accurate. Just need to know if there is anything else I need to be doing.
Ideally, your pull request is done from a dedicated branch, not from master
.
That means all you need to do is:
git fetch upstream
git checkout my_PR_branch
git rebase upstream/master
git push --force
If you want, you can also reset your local master
branch to upstream/master
(assuming again that you have developpped your PR in its own branch)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.