Pulling
suggest changeIntroduction
git push sends local commits to a remote. git pull fetches commits from a remote and integrates them into the current branch. This topic covers that command and problems that come up while integrating those commits.
Syntax
- git pull [options [<repository> [<refspec>…]]
Parameters
| Parameter | Details |
|---|---|
--quiet |
No text output |
-q |
Shorthand for --quiet |
--verbose |
Verbose output. Passed on to fetch and to merge or rebase |
-v |
Shorthand for --verbose |
--[no-]recurse-submodules[=yes|on-demand|no] |
Fetch new submodule commits. This does not check out those commits |
Remarks
git pull runs git fetch with the given parameters, then merges the retrieved branch into the current branch. If pull.rebase is set, or you pass --rebase, it rebases your local commits instead of merging.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents