Pull and fetch

fetch downloads new commits from the remote; pull fetches and merges them into your branch.

Also called: git pull, git fetch, fast-forward

Type
Term
Source
General

In plain English

--ff-only refuses to create a merge commit, so you notice when your copy and the remote have both changed.

Example

Pull before you start working, so you have your colleague's latest changes.

In code

git fetch origin
git pull --ff-only

Learn more

Related terms

Added 2026-11-30 · Last reviewed 2026-11-30