git fetch
will retrieve remote branches so that you can git diff
or git merge
them with the current branch. git pull
will run fetch on the remote brach tracked by the current branch and then merge the result. You can use git fetch
to see if there are any updates to the remote branch without necessary merging them with your local branch.