0 votes
16 views
in Technology by (51.6k points)

Explain the difference between git fetch and git pull.

1 Answer

0 votes
by (51.6k points)

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
1 answer 30 views
0 votes
1 answer 18 views
0 votes
1 answer 68 views
0 votes
0 answers 38 views
0 votes
1 answer 27 views
0 votes
1 answer 23 views
0 votes
1 answer 34 views
0 votes
1 answer 61 views
0 votes
1 answer 26 views
0 votes
1 answer 25 views
0 votes
1 answer 15 views
0 votes
1 answer 36 views
0 votes
1 answer 44 views
0 votes
1 answer 25 views
...