Google News
logo
UI Developer - Interview Questions
What is the difference between Git Pull and Git Fetch commands?
Git pull and Git fetch are the Git commands used to make changes and retrieve data. Let's see the key differences between them :

Git fetch Git pull
The Git Fetch command downloads only new data from a remote repository. The Git fetch command is more like checking to see if any changes are available. The Git pull command pulls new data and integrates it with the current working files, updating the current HEAD branch with the latest modifications from the remote server.
The Git fetch command does not include any new information in your working files. The Git pull command combines remote modifications with those made locally.
Advertisement