【发布时间】:2011-04-06 22:40:36
【问题描述】:
做(在mkdir repo和cd repo之后)有什么区别:
git init
git remote add origin git://github.com/cmcculloh/repo.git
git fetch --all
git pull origin master
和
git clone git://github.com/cmcculloh/repo.git
我的意思是,显然一个更短,但除此之外,他们基本上在做同样的事情吗?
【问题讨论】:
-
git pull是最没用的 Git 命令。每个人都在使用它,却不了解它的作用以及为什么很多时候使用它是错误的。