Git 克隆

工作中大家分工协作,共同开发维护一个项目,git仓库放在公共的服务器上,如github、Gitee等。

在这种情况使用git,需要先克隆仓库到本地。

克隆非常简单,使用命令git clone

将远程仓库克隆到本地新建目录

示例,从github上克隆一个仓库

 git clone https://github.com/nhnent/tui.editor.git

运行结果

1
2
3
4
5
6
正克隆到 'tui.editor'...
remote: Counting objects: 20330, done.
remote: Compressing objects: 100% (31/31), done.
remote: Total 20330 (delta 14), reused 7 (delta 3), pack-reused 20296
接收对象中: 100% (20330/20330), 16.92 MiB | 3.60 MiB/sdone.
处理 delta 中: 100% (14246/14246), done.
原文地址:https://www.cnblogs.com/max-hou/p/12040277.html