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

0 like 0 dislike
15 views

What are the differences between git pull and git fetch?

by (550 points) | 15 views

1 Answer

0 like 0 dislike

In the simplest terms, git pull does a git fetch followed by a git merge.

You can do a git fetch at any time to update your remote-tracking branches under refs/remotes/<remote>/

by (1.2k points)
110,608 questions
257,186 answers
0 comments
1,117 users