git-pull - Fetch from and merge with another repository or a local branchSYNOPSIS
git pull …DESCRIPTION
Runs git-fetch with the given parameters, and calls git-merge to merge theretrieved head(s) into the current branch. With --rebase, calls git-rebaseinstead of git-merge.
Note that you can use . (current directory) as the <repository> to pullfrom the local repository — this is useful when merging local branchesinto the current branch.
Also note that options meant for git-pull itself and underlying git-mergemust be given before the options meant for git-fetch.
LOCAL SYSTEM. ====================================================================== . ================= =================== =============REMOTE REPOSITORY . REMOTE REPOSITORY LOCAL REPOSITORY WORKING COPY(ORIGIN) . (CACHED)for example, . mirror of thea github repo. . remote repoCan also be .multiple repo's ...FETCH *------------------>*Your local cache of the remote is updated with the origin (or multipleexternal sources, that is git's distributed nature).PULL *-------------------------------------------------------->*changes are merged directly into your local copy. when conflicts occur,you are asked for decisions..COMMIT . *<---------------*When coming from, for example, subversion, you might think that a commitwill update the origin. In git, a commit is only done to your local repo..PUSH *<---------------------------------------*Synchronizes your changes back into the origin.