Skip to content

GitHub PR FAQ

作者:Lee 等
最后更新:

Overview

This chapter is for common issues beginners may encounter. If you have any questions, feel free to contact the author.

What should I do if there are new commits in the repository before my PR is merged?

If there are no merge conflicts, you can ignore it; if there are merge conflicts, you need to resolve them first.

After my PR is merged, I want to submit a new PR

Be sure not to commit directly to the original branch, as this may cause merge conflicts.

Solution 1

You can update the branch to the latest version

(Both buttons are effective. The first one updates to the latest version and discards your local commits, while the second updates to the latest version)

Solution 2

Create a new branch based on the upstream repository and commit in the new branch

How to modify after submission

Before the PR is merged, the branch and PR are bound together; just modify the corresponding branch directly.

How to review a PR

Go into the PR and click on Files changed

Click on Review changes

页面历史