fetch vs pull
What is the difference between git fetch and git pull?
git fetch
git pull
Choose one answer
pull only works with SSH remotes.
pull
fetch uploads commits; pull downloads them.
fetch
They are identical.
fetch downloads new commits and updates remote-tracking branches (like origin/main) without touching your branch; pull = fetch + merge (or rebase) into your current branch.
origin/main