What is the difference between git fetch and git pull? #9
-
|
Hi, I am new to Git. I see both |
Beta Was this translation helpful? Give feedback.
Answered by
muhammedadnank
Jun 2, 2026
Replies: 1 comment
-
|
Both commands are used to download changes from a remote repository, but they do it in different ways: 1.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
muhammedadnank
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Both commands are used to download changes from a remote repository, but they do it in different ways:
1.
git fetch(Safe & Non-Destructive)git logorgit diff origin/main.2.
git pull(Fetch + Merge)git fetchto download the changes.git mergeto immediately merge those changes into y…