git pull

git-pull

Name

git-pull - Fetch from and integrate with another repository or a local branch

Synopsis

git pull [options] [<repository> [<refspec>…​]]

Description

Incorporates changes from a remote repository into the current branch. In its default mode, git pull is shorthand for git fetch followed by git merge FETCH_HEAD.

More precisely, git pull runs git fetch with the given parameters and calls git merge to merge the retrieved branch heads into the current branch. With --rebase, it runs git rebase instead of git merge.

<repository> should be the name of a remote repository as