Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 github 上创建了 fork 项目。我做了一个提交并请求它。此提交已获批准。然后我进行第二次提交并请求它。但是在拉取请求中有 2 个提交:我的第二个提交和已批准的旧提交。如何同步我的存储库和主存储库?
从上游存储库合并回来,或在新分支上创建新的拉取请求。
或者在上游基础上重新设置:
git remote add upstream (url-for-upstream-repository) git fetch upstream git rebase upstream/master git push -f origin (do new pull request on website)