Unlike pushing with Git where your local changes are sent to the central repository's server, pulling with Git takes the current code on the server and 'pulls' it down from the repository's server to your local machine. This topic explains the process of pulling code from a repository using Git as well as the situations one might encounter while pulling different code into the local copy.
Parameters | Details |
---|---|
--quiet | No text output |
-q | shorthand for --quiet |
--verbose | verbose text output. Passed to fetch and merge/rebase commands respectively. |
-v | shorthand for --verbose |
--[no-]recurse-submodules[=yes |on-demand |no] | Fetch new commits for submodules? (Not that this is not a pull/checkout) |
git pull
runs git fetch
with the given parameters and calls git merge
to merge the retrieved branch heads into the current branch.