Command

git pull

Fetch then integrate; explicit options avoid relying on default configuration.

Formal Syntax & Structure

git syntaxgit
git pull [--ff-only | --rebase | --no-rebase] REMOTE BRANCH

Working Example

Example Snippetgit
git pull --ff-only origin main
Git Reference