1)新建一个空白文件夹
2)在github要下载的项目中复制这个
![[Pasted image 20241220004310.webp]]

3)在空白文件夹里右键打开Git Bash Here
![[Pasted image 20241220004120.webp]]

4)输入git clone+之前复制的内容
![[Pasted image 20241220004410.webp]]

遇到问题,错误信息:fatal: unable to access ‘https://github.com/FLUENTYAN/WarOfPlane.git/’: HTTP/2 stream 1 was not closed cleanly before end of the underlying stream

通过网上资料发现,是 git 默认使用的通信协议出现了问题,可以通过将默认通信协议修改为 http/1.1 来解决该问题。

$ git config --global http.version HTTP/1.1

![[Pasted image 20241220004710.webp]]

再次尝试,出现新错误:
![[Pasted image 20241220004749.webp]]

通过网上资料得知,是VPN代理的问题,关闭VPN后,输入:

git config --global --unset http.proxy
git config --global --unset https.proxy

5)下载成功
![[Pasted image 20241220004951.webp]]

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐