Google News
logo
Git - Interview Questions
Differentiate between git pull and git fetch.
This is an important Git interview question. “git pull” and “git fetch” are used for downloading new data from a remote repository.

"git pull" : This command is used to update the current HEAD data branch with all the changes that occurred in the remote repository. Thus, it downloads the data and integrates it with existing working files.
 
"git fetch" : It downloads new data from the repository but does not support integrating this data into working files. It offers a fresh view of things that happened in the remote repository.
Advertisement