Git Fetch vs Git Pull? Which one should you choose?

preview_player
Показать описание
Ever wonder about the difference between git fetch and git pull?

They both copy changes from the remote GitHub or GitLab repository to your local Git repo, but git fetch does not update your working directory while git pull does.

That's it, that's the difference between fetch and pull in Git.

On, and after you do a fetch, if you do want to update your local Git workingtree, then just do a git merge. That brings it all in.

In fact, git fetch followed by a git merge is basically the same thing as a git pull.
Рекомендации по теме
Комментарии
Автор

Man you have a gift for just making things make sense that 99% of these other videos don't do. Every time I'm confused about something and see one of your videos I always leave with an "ah ha" moment. Thank you Cameron.

stmav
Автор

I've watched many tutorials about this today, but none of them was even close to this one. You're the boss

luispablosandovalcastro
Автор

WOW! This the easiest and yet most comprehensive explanation of this. Thank you!

midlifepublishing
Автор

Very nice tutorial.
Besides explaining the technical diff between fetch and pull, it woulc have been great if you could also explain the reasons why one would use git fetch

nsharony
Автор

Straightforward. That's the kind of content I've been looking for. Thx man.

leandroreis
Автор

Thank you so much for this explanation, I have seen so many other but i couldnt understand this until i get to you.

hieulequang
Автор

Its so simple. Thank you for concise and useful tutorial

OmPrakash-vtvr
Автор

Thank you very much. Straight to the point.

renevillela
Автор

thank you for this clear explanation of fetch and pull. I appreciate the simple graphics and animation.

noel_curray
Автор

the way you talk is funny😂😂
but i like it, it was helpful
thanks

osa-_-
Автор

Very good and clear explanation... awesome ... make more videos

mmrzzfr
Автор

I'm Brazilian and with your video I was able to understand the difference between one and the other, unfortunately in my language there is no well-explained content as well as in English. It's a shame that I'm not fluent in English, but the YouTube translation helped me a lot, I had a little doubt about when to use git fetch, but it could be that you've already released another video. So in that case I will look at the other videos on your channel. I'm grateful

Just to recap, there is this type of content but in general context videos that are usually 1 hour long and you have to look for the video where it is talked about and generally a shallower explanation is given.

XgigabyteX
Автор

no nonsense talking, right on point, This short and sweet video is legend

official_youtube_
Автор

This is really nice and straight to the point lesson, thanks sir!

MasharipovSaidbek
Автор

thanks! this video is really helpful. greeting from México

edgaruriel
Автор

its perfect explanation in very short time...Appreciate it😊

davidjhons
Автор

Man you are really awosome & happy. Lots of love💌

AtulShegokar
Автор

Thanks for the great explanation! A question; what is the point of using git fetch if we won't see it in our local machine ? We can pull it later instead of merge it later ?

umutdegismen
Автор

That was pretty well explained! Thanks a million!

zhozfem
Автор

Great vid, thanks.

So in the limbo, between FETCH and MERGE, where does the file exist? Which branch?, where does the MERGE command merge FROM?

Hinkakan