git pull = git fetch + git merge/rebase

在官方文档中有这么一段话

More precisely, git pull runs git fetch with the given parameters and then depending on configuration options or command line flags, will call either git rebase or git merge to reconcile diverging branches.

翻译:更确切地说,git pull通过给定的参数运行git fetch,然后根据配置选项或命令行标志,调用git rebase或git merge来调和分歧的分支。

参考资料

  1. https://git-scm.com/docs/git-fetch
  2. https://git-scm.com/docs/git-pull

[END]