# 【git】解决能访问github但克隆不了的问题

@[TOC](https://github.com/UnderTurrets/notes/blob/master/uncategorized/%E6%96%87%E7%AB%A0%E7%9B%AE%E5%BD%95/README.md)

***

## 1.查看你的代理的地址：

![在这里插入图片描述](https://cdn.jsdelivr.net/gh/UnderTurrets/ImageHosting/%E5%85%B6%E4%BB%96/assets%E3%80%90git%E3%80%91%E8%A7%A3%E5%86%B3%E8%83%BD%E8%AE%BF%E9%97%AEgithub%E4%BD%86%E5%85%8B%E9%9A%86%E4%B8%8D%E4%BA%86%E7%9A%84%E9%97%AE%E9%A2%98/64db482d25484d41a4cf5e2c58534aa2.png)

## 2.git设置

先看看当前的git设置

```shell
git config --list
```

然后git中要设置好对应的地址

```shell
git config --global http.proxy 127.0.0.1:7890
```

## 3.尝试clone

```shell
$ git clone https://github.com/catsout/wallpaper-engine-kde-plugin.git
正克隆到 'wallpaper-engine-kde-plugin'...
remote: Enumerating objects: 7491, done.
remote: Counting objects: 100% (1538/1538), done.
remote: Compressing objects: 100% (492/492), done.
remote: Total 7491 (delta 1026), reused 1402 (delta 995), pack-reused 5953
接收对象中: 100% (7491/7491), 5.43 MiB | 971.00 KiB/s, 完成.
处理 delta 中: 100% (4687/4687), 完成.
```

成功！
