在第三章中,我们已经有了一个项目在github上,并且得到了项目的地址。这里我们就说说如何用命令把项目克隆到我们自己的电脑上。
首先,在我们自己电脑上新建一个文件夹,取个名字,我这里叫做TestGit。

image.png
然后,打开终端,进入到新建的文件夹中,输入命令

image.png
然后开始克隆项目了,使用 git clone命令。

image.png
执行过程中,输出如下:

image.png
已经成功了,看看我们本地的文件夹中是否有了新的项目文件呢?

image.png

image.png
已经把github上的项目下载下来了。