How to open multiple PR for a project at the same time

RT, recently worked on an open source project and looked at the issue list and found that there are several places where bug can be dropped on its own fix. So fork took a branch to his account and submitted a PR to fix an issue, but this PR needs to be discussed with the maintainer for a long time (after all, in Canada, jet lag is discussed).
so here"s the problem:

  1. if there are updates on the master branch at the same time, how can I send the update Synchronize of the master branch of the original warehouse to my local fork warehouse?
  2. my current fork warehouse has been trapped in the previous issue,. What if I want to develop a branch to fix another issue, at the same time?
Git
Mar.03,2021

according to the Git document Merging an upstream repository into your fork :

first, move your project to the master branch:

$ git checkout master

then, pull down the remote code of the original project:

$ git pull https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git BRANCH_NAME

then, there are conflicts to handle conflicts, and then make sure that the commit, is correct. Of course, it is best not to touch the master branch of your local project;

finally, push can push its own project to its own remote end:

$ git push origin master

then whatever you want to fix, open another branch and push it to your own far end.

I hope I can help you.

Menu