简体   繁体   English

如何提取PR的最新提交?

[英]How to pull the latest commit of a PR?

I am reviewing someone else's PR from Github. 我正在审查来自Github的其他人的PR。 And I have local branch of it. 我在当地有分公司。 Now the author has another commit for the PR, and I'd like to pull the latest commit to my local branch, how can I do that? 现在,作者对PR进行了另一次提交,我想将最新的提交拉到我的本地分支,该怎么办?

Just do a git pull as you normally would for any other branch: 只需像通常对其他任何分支一样执行git pull

git pull origin someBranch

Note that when your colleague updated his pull request, he most likely did so by simply updating his branch. 请注意,当您的同事更新其拉取请求时,他很可能是通过简单地更新其分支来完成的。 So all you have to do is pull that latest commit into your local branch. 因此,您要做的就是将最新提交提交到本地分支中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM