What's the Use of git fetch? - fetch vs pull Comparison
The git fetch command can be used to download all commits from the remote repository without affecting your local code. Basically, git pull does first a git fetch followed by a git merge origin/master.