git-fetch

What is the difference between 'git pull' and 'git fetch'?

我们两清 提交于 2019-11-25 21:41:00
问题 Moderator Note: Given that this question has already had sixty-seven answers posted to it (some of them deleted), consider whether or not you are contributing anything new before posting another one. What are the differences between git pull and git fetch ? 回答1: In the simplest terms, git pull does a git fetch followed by a git merge . You can do a git fetch at any time to update your remote-tracking branches under refs/remotes/<remote>/ . This operation never changes any of your own local