git clone
git pull
clone 是本地没有 repository 时,将远程 repository 整个下载过来。
pull 是本地有 repository 时,将远程 repository 里新的 commit 数据(如有的话)下载过来,并且与本地代码merge。
git clone is how you get a local copy of an existing repository to work on. It’s usually only used once for a given repository, unless you want to have multiple working copies of it around. (Or want to get a clean copy after messing up your local one…)
git pull (or git fetch + git merge) is how you update that local copy with new commits from the remote repository. If you are collaborating with others, it is a command that you will run frequently.
As your first example shows, it is possible to emulate git clone with an assortment of other git commands, but it’s not really the case that git pull is doing “basically the same thing” as git clone (or vice-versa).
参考资料:
1、git的pull和clone有什么区别?
https://www.zhihu.com/question/39595933
2、What is the difference between pull and clone in git?
https://stackoverflow.com/questions/3620633/what-is-the-difference-between-pull-and-clone-in-git