An Interest In:
Web News this Week
- April 2, 2024
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
- March 27, 2024
January 29, 2022 01:58 pm GMT
Original Link: https://dev.to/danyson/what-is-the-difference-between-git-pull-and-git-fetch-548e
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:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To