0

I have forked one repo MasterRepo and its showing in my repository. LocalRepo.

When ever I maded changes and push its get updated in my repo that is LocalRepo.

But If someone change anything in MasterRepo than how would I get changes.

I know command is git pull but my confusion is if I use git pull changes will com from my localrepo or from master repo?

bugCracker
  • 3,656
  • 9
  • 37
  • 58
  • Possible duplicate of [What are the differences between 'git pull' and 'git fetch'?](http://stackoverflow.com/questions/292357/what-are-the-differences-between-git-pull-and-git-fetch) – RedX Nov 04 '15 at 09:42
  • [How to update a Github fork](http://stackoverflow.com/questions/7244321/how-to-update-a-github-forked-repository) – Headshota Nov 04 '15 at 09:43

1 Answers1

0

git pull will pull your default remote and branch. But you can also specify the remote and the branch you want to pull from - e.g.:

git pull upstream develop

If you just cloned your fork you might have to add the master repo remote with

git remote add <name> <url>
Mathias Dpunkt
  • 11,594
  • 4
  • 45
  • 70