What is the difference between 'git pull' and 'git fetch'?

  1. git pull fetches and merges, git fetch only downloads
  2. No difference, they are identical
  3. git fetch is faster than git pull
  4. git pull works offline, git fetch requires internet

Explanation

git fetch downloads changes from the remote repository without merging them, while git pull performs a fetch followed by a merge, updating your current branch with remote changes.