2

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
  • 6,724
  • 9
  • 67
  • 116

1 Answers1

4

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,901
  • 2
  • 17
  • 23
ichigolas
  • 7,595
  • 27
  • 50