如果 github 告诉我 "Add more commits by pushing to the master branch on...",我该如何向某人发送给我的拉取请求添加提交?

How do I add commits to a pull request someone sent me, if github tells me "Add more commits by pushing to the master branch on..."?

有人向我发送了拉取请求。 Github 描述了如何签出分支并测试这样的更改:

git checkout -b usernameOfPRSender-master master
git pull https://github.com/usernameOfPRSender/projectname.git master

这就是我所做的。现在我在本地有了拉取请求的更改,可以查看它们并在本地测试它们。

我必须进行一些更改,因此我执行了所需的更改并提交了它们。

我现在如何推送拉取请求?

Github 在拉取请求页面上告诉我:

Add more commits by pushing to the master branch on usernameOfPRSender/projectname.

我现在该怎么做?

我做到了

git push origin usernameOfPRSender-master:master

这似乎有效(如所述here)。

它合并了拉​​取请求中的所有更改和我的更改并关闭了拉取请求。