Git Pulling

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

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?