1

In our team half uses branching on the original repo and some fork the repositories into their own. We now have a PR from the forked repo going to master, how can I pull the changes of that particular PR to my local so I can check on my local the effect of his changes?

Dean Christian Armada
  • 5,837
  • 7
  • 55
  • 103

1 Answers1

2

Create a new origin pointing to the forked repo:

git remote add fork1 git@github.com:someuser/somerepo.git
git fetch fork1
git checkout fork1/somebranch # checkout the code in the fork
Ashish Yadav
  • 1,675
  • 2
  • 14
  • 23
ichigolas
  • 7,340
  • 25
  • 46