Pulling

Download git eBook

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.

Related Examples

Stats

128 Contributors: 9
Thursday, December 29, 2016
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook