Git · Everyday workflow

git fetch

Downloads remote refs without changing your working tree. Inspect before merging.

Syntax
git fetch

Example

Example
git fetch origin
git log --oneline HEAD..origin/main

More in this group

git add git blame git commit git commit --amend git diff git log git mv git pull

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course