Git Pulling

30% OFF - 9th Anniversary discount on Entity Framework Extensions until December 15 with code: ZZZANNIVERSARY9

Introduction

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.

Syntax

  • git pull [options [<repository> [<refspec>...]]

Parameters

ParametersDetails
--quietNo text output
-qshorthand for --quiet
--verboseverbose text output. Passed to fetch and merge/rebase commands respectively.
-vshorthand for --verbose
--[no-]recurse-submodules[=yes|on-demand|no]Fetch new commits for submodules? (Not that this is not a pull/checkout)

Remarks

git pull runs git fetch with the given parameters and calls git merge to merge the retrieved branch heads into the current branch.



Got any Git Question?