13

我在 github 上创建了 fork 项目。我做了一个提交并请求它。此提交已获批准。然后我进行第二次提交并请求它。但是在拉取请求中有 2 个提交:我的第二个提交和已批准的旧提交。如何同步我的存储库和主存储库?

4

1 回答 1

18

从上游存储库合并回来,或在新分支上创建新的拉取请求。

或者在上游基础上重新设置:

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)
于 2011-03-24T06:49:55.933 回答