git pull

Practice git pull from memory. git pull = git fetch + git merge (or --rebase). Specifying origin main avoids surprises if the upstream tracking is misc

Fetch and merge changes from remote main into current branch.

git pull origin main

git pull = git fetch + git merge (or --rebase). Specifying origin main avoids surprises if the upstream tracking is misconfigured. Add --rebase for linear history.

Safety: Inspect first and avoid rewriting shared history unless the team expects it.

Download remote refs without merging into your branches.

git fetch origin

git fetch updates origin/* remote-tracking refs without touching your working branches. Safe to run anytime; pair with git log HEAD..origin/main to preview incoming changes.

Safety: Inspect first and avoid rewriting shared history unless the team expects it.

Build the habit: GitDrill drills git pull and the rest of the Git workflow until the safe first move is automatic. Try a Git drill.