简体   繁体   中英

How to pull the latest commit of a PR?

I am reviewing someone else's PR from Github. 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?

Just do a git pull as you normally would for any other branch:

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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