Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

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

What are the differences between git pull and git fetch or are they similar?
by

2 Answers

Bharatgxwzm
One use instance of git fetch is that the accompanying will reveal to you any progressions in the far off branch since your last draw... so you can check prior to doing a genuine draw, which could change documents in your present branch and working duplicate.
git fetch
git diff ...origin
Kajalsi45d
You can get from a distant vault, see the distinctions and afterwards pull or consolidation.

This is a model for a distant storehouse called origin and a branch called master following the far off origin/master:
git checkout master                                                  
git fetch
git diff origin/master
git rebase origin master

Login / Signup to Answer the Question.