git fetch
git fetch fetches branches and/or tags from remote repositories. Remote-tracking branches are updated in local environment.
git pull
git pull does both git fetch and git merge as default, i.e. the changes on the remote target branch will be fetched and merged to our local branch. With option --rebase, it can rebase the remote changes on the current branch instead of merge strategy.
Top comments (0)