git fetch origin
git reset --hard origin/master
git pull
Explanation above mentioned Command:
- [Fetch will download everything from another repository, in this case, the one marked as "origin".][1]
- [Reset will discard changes and revert to the mentioned branch, "master" in repository "origin".][2]
- [Pull will just get everything from a remote repository and integrate.][3]
See more about `git` documentation at http://git-scm.com/docs.
[1]: https://git-scm.com/docs/git-fetch
[2]: https://git-scm.com/docs/git-reset
[3]: https://git-scm.com/docs/git-pull
git fetch origin
git reset --hard origin/master
git pull
Explanation:
- Fetch will download everything from another repository, in this case, the one marked as "origin".
- Reset will discard changes and revert to the mentioned branch, "master" in repository "origin".
- Pull will just get everything from a remote repository and integrate.
See documentation at http://git-scm.com/docs.