使用git如何下载github上的代码到本地详解

从github下载代码到本地(首先要在本地安装好git)
git官网:https://git-scm.com/
这个就比较简单了,总共三步:

  1. 新建本地仓库
    新建一个文件夹,初始化git

git init
在这里插入图片描述
2. 添加github远程代码仓库

git remote add origin + 远程代码仓库地址
在这里插入图片描述
远程代码仓库地址如下所示:

在这里插入图片描述

  1. 下载远程仓库代码

git clone + 远程代码仓库地址1
在这里插入图片描述
完成。

在这里插入图片描述

转载至:https://blog.csdn.net/qiucheng_198806/article/details/86220533

猜你喜欢

转载自blog.csdn.net/weixin_44474742/article/details/92382536