Update your local repository with changes from the remote
git pull command, you can update your local repository with any changes that have been pushed by other developers since the last time you ran the command.
To use this command, you simply type:
$ git pull
The remote version of your current branch will contacted and updated code will be merged into your own local copy.
This will use the default configured remote (normally this is named as
origin) but if one hasn't been configured, or you want to contact a specific branch and/or remote, you can use:
$ git pull origin master
Naming the remote first, and the branch second. Unlike
git fetch, which just downloads the latest updates from the repository,
git pull will actually try to merge the code into your local copy so your work will actually be changed.
We have a guide explaining the differences in more detail in our FAQs.