What is the difference between git pull and git fetch?
Answer / Sachin Kumar Poswal
Both Git `pull` and `fetch` commands are used to update your local repository with changes from a remote repository. However, they have some differences:n- `fetch` only downloads the commits and updates the refs (branch pointers) in your local repository, but it doesn't merge the changes into your working directory or create new merge commits.n- `pull` fetches the changes as well but also merges them into your current branch and creates a new commit if necessary.
| Is This Answer Correct ? | 0 Yes | 0 No |
Distinguish between git fetch and git pull?
How to resolve a conflict in git?
what is git fork? What is difference between fork and branch? How to create tag?
What does a commit object contain?
Why GIT better than Subversion?
What is git reflog?
What is git bisect?
How can you use git bisect to determine the source of a (regression) bug?
What is git fork? How to create tag?
Can you explain the gitflow workflow?
How git instaweb is used?
What is the purpose of branching and how many branching strategies can you apply?