zjffdu
zjffdu

Reputation: 28860

how to pull the updated PR of github

I have pulled the PR from github, now someone else updated the PR. Then how can I update the PR in my local ? The following command doesn't work for me.

git pull upstream pr/2329
fatal: Couldn't find remote ref pr/2329

I can see pr/2329 in git branch -r command, and also I can see upstream in git remote -v

Upvotes: 0

Views: 68

Answers (1)

phd
phd

Reputation: 94676

git checkout pr/2329
git pull upstream pull/2329/head

pr/2329 is your local branch that you've created for that Pull Request. Switch to it and update from pull request. Pull requests at Github are just branches in pull/ namespace.

Upvotes: 1

Related Questions