The answer to #1 is slightly incorrect. git fetch does download all the changes from the remote, but unlike git pull it does not incorporate them in your local branch.
Ah, I see. Thanks for clarifying. I recently saw a diagram that describes git pull as git fetch + git merge. That makes it easier for me to distinguish the two.
Not only can it be described as such, it is exactly that. From the git pull doc page:
"In its default mode, git pull is shorthand for git fetch followed by git merge FETCH_HEAD."
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
The answer to #1 is slightly incorrect.
git fetch
does download all the changes from the remote, but unlikegit pull
it does not incorporate them in your local branch.Ah, I see. Thanks for clarifying. I recently saw a diagram that describes
git pull
asgit fetch
+git merge
. That makes it easier for me to distinguish the two.Not only can it be described as such, it is exactly that. From the
git pull
doc page:"In its default mode,
git pull
is shorthand forgit fetch
followed bygit merge FETCH_HEAD
."