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?
Asked
Active
Viewed 128 times
1
-
I think what you answered is what I am looking for – Dean Christian Armada May 05 '20 at 03:00
1 Answers
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