in Technology by

Explain the difference between git fetch and git pull.

Please log in or register to answer this question.

1 Answer

0 votes

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

Related questions

0 votes
asked Oct 26, 2020 in Technology by JackTerrance
0 votes
asked Apr 26, 2022 in Education by JackTerrance
0 votes
asked Nov 2, 2020 in Technology by JackTerrance