About
git pull incorporates commit (changes) from:
- into the current branch.
when you run a pull, git figures out what has changed on the server since the last pull and downloads any new commit metadata and file contents.
In its default mode, git pull is a shorthand for:
- followed by git merge ie git merge FETCH_HEAD
ie if you’re on a tracking branch and type git pull, Git automatically knows:
- which upstream branch to fetch from
Syntax
git pull remoteName branchName
- pull from a remote into the working branch
git pull remoteName
- pull from the tracking remote into the working branch
git pull