Syncing fork with upstream: git fetch + git checkout + git merge vs. git checkout + git pull
- 阅读更多 关于 Syncing fork with upstream: git fetch + git checkout + git merge vs. git checkout + git pull
问题 The documentation at Github-Help: Syncing a Fork shows three commands to keep my GitHub fork in sync with the upstream repo. git fetch upstream git checkout master git merge upstream/master Can I use the following two commands instead of the above three? git checkout master git pull upstream/master Are the two sets of commands equivalent, or are there differences between them? 回答1: These command sets are not equivalent. git pull is split into two commands: git fetch git merge The problem is,