git pull

The command that fetches from the upstream remote and then merges (or, if configured, rebases) the new commits into your current branch.

In more detail

git pull is git fetch followed by git merge. When you have no local commits it simply fast-forwards; otherwise it creates a merge commit, or replays your work if pull.rebase is true. Fetch first when you want to look before anything changes.

Example

git pull

Related terms

Taught in

References