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.
2 май 2023