DevOps Interview DropBeginner TierConcept+10 XP on read

What is the difference between git fetch and git pull?

Core Summary

Fetch downloads remote commits and updates your remote-tracking branches, but never touches your working tree. Pull is fetch plus merge or rebase, so it changes your branch. Fetch is the safer move when you're debugging or scripting.

Hints

Hint 1: One of them is read-only, one modifies your branch

Hint 2: pull = fetch + integrate

Hint 3: Which integration step pull uses depends on config

Reported in interviews at Almost every screen