这四个命令在您的 local 存储库和 remote 存储库之间移动数据,但它们做的事情不同。了解这些区别——尤其是 fetch 与 pull 的区别——对于正确使用 remotes 很重要。
clone — 复制存储库(一次)
git clone <url>
# → creates a LOCAL copy of an entire remote repository (all history + branches)
# → sets up "origin" pointing to the remote; done ONCE to start working on a project
下载 remote 存储库的完整副本以开始工作——每个项目执行一次。
