深入理解 Git 常用命令
1. 仓库克隆
Git 支持多种形式的仓库克隆,以下是可用的仓库形式:
-/path/repo.git
-rsync://hostname/path/repo.git
-http://hostname/path/repo.git
-https://hostname/path/repo.git
-git://host/path/repo.git
-ssh://host/path/repo.git
-ssh://user@host:port/path/repo.git
-host:path/repo.git
-user@host:path/repo.git
克隆命令的选项如下:
| 选项 | 描述 |
| ---- | ---- |
|-s, --shared| |
|--no-hardlinks| |
|--reference other-parent-repository| |
|-q, --quiet| 安静模式 |
|-n, --no-checkout| 不进行