0
Explain the difference between git fetch and git pull.

Open 1 Answers 31 Views Technology

Explain the difference between git fetch and git pull.

1 Answer

0

Git fetch Git pull

Git fetch only downloads new data from a remote repository Git pull updates the current HEAD branch with the latest changes from the remote server

Does not integrate any new data into your working files Downloads new data and integrate it with the current working files

Users can run a Git fetch at any time to update the remote-tracking branches Tries to merge remote changes with your local ones

Command - git fetch origin

                  git fetch –-all

Command - git pull origin master

by (54.6k points)
...