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

Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike

What are the differences between git pull and git fetch?

by (550 points) | 674 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,187 answers
40,330 users