git clone with HTTPS :选好目录,右击,点击Git bash here,在Git bash中输入:git clone 复制好的URL,例如:git clone https://github.com/project/repo.git ,等待下载,可以看到文件夹中已有仓库中的文件。
git clone with SSH: 同理,例如:git clone git@github.com:project/repo.git
http与SSH下载异同:
同:
HTTPs 与 SSH 下的 git 都可以直接进行 git clone 操作
异:
HTTPs git clone 到本地,进行了一些文件的修改,当再次提交到 GitHub远程服务器的时候,都会进行账号与密码的输入
SSH git clone 到本地之后,由于已有 SSH Keys 授权,就不需要用户名和密码进行授权了。