Git · Everyday workflow
git fetch
Downloads remote refs without changing your working tree. Inspect before merging.
Syntax
git fetchExample
Example
git fetch origin git log --oneline HEAD..origin/main
More in this group
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.