参考资料

  1. git与gitee的关系
  2. 为什么用svn不用git
  3. git clone怎么用
  4. gitee一般用在哪
  5. gitee干什么用
  6. github干什么用
  7. 国内使用镜像站点加速
  8. git常用命令有哪些

git clone 用于克隆远程仓库到本地。基本用法:

git clone <仓库URL>

例如:

git clone https://github.com/user/repo.git

克隆到指定目录:

git clone https://github.com/user/repo.git 目标目录

克隆特定分支:

git clone -b 分支名 https://github.com/user/repo.git

克隆深度为1(仅最新提交):

git clone --depth 1 https://github.com/user/repo.git

这些命令将下载仓库到本地并创建相应的 Git 配置。