Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
January 29, 2022 01:58 pm GMT

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

git fetch

Explanation: git fetch fetches commits from the target branch that is not in our current local branch and stores them in our local repository.

It does not merge. Which means we have the changes from target branch but not yet merged to our local branch.

git pull

Explanation: git pull does both git fetch and git merge.

Which means changes from target branch will be fetched and merged to our local branch.

Support Us: Buy Me a Book


Original Link: https://dev.to/danyson/what-is-the-difference-between-git-pull-and-git-fetch-548e

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To