S

Satya • 2.41K Points
Master

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

  • (A) 'git fetch' updates local tracking branches, 'git pull' merges as well
  • (B) No difference
  • (C) 'git fetch' deletes branches, 'git pull' does not
  • (D) 'git pull' creates a gist
  • Correct Answer - Option(A)
  • Views: 6
  • Filed under category GitHub
  • Hashtags:

Explanation by: Satya
'git fetch' retrieves updates from the remote but does not merge them, whereas 'git pull' does both.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.