What is the difference between pull and clone in git?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: What is the difference between doing (after mkdir repo and cd repo ): git init git remote add origin git://github.com/cmcculloh/repo.git git fetch --all git pull origin master and git clone git://github.com/cmcculloh/repo.git I mean, obviously one is shorter, but other than that are they basically doing the same thing? 回答1: They're basically the same, except clone will setup additional remote tracking branches, not just master. Check out the man page : Clones a repository into a newly created directory, creates remote-tracking branches for