如何从 git 中删除代理 我尝试了,但仍然显示错误如何解决?

bad*_*zad 4 proxy git github 14.04

每当我尝试拉、推或克隆我删除代理但 git 仍然没有积极响应时,我的 git 就会卡住。

上次我使用此命令进行代理:

git config --global http.proxy 172.16.0.2:8080
Run Code Online (Sandbox Code Playgroud)

我尝试这些命令:

git config --global --unset http.proxy
git config --global --unset https.proxy
git config --global --unset core.gitproxy
Run Code Online (Sandbox Code Playgroud)

但当我克隆存储库或想要拉或推时仍然收到此响应!

badar:DSA Lab Tasks$ git clone https://github.com/badarshahzad/SEGP_Group10.git
Cloning into 'SEGP_Group10'...
fatal: unable to access 'https://github.com/badarshahzad/SEGP_Group10.git/': Failed to connect to 172.16.0.2 port 8080: Connection timed ou
Run Code Online (Sandbox Code Playgroud)

bad*_*zad 5

使用这些命令后

git config --global --unset http.proxy
git config --global --unset https.proxy
git config --global --unset core.gitproxy
Run Code Online (Sandbox Code Playgroud)

这两个命令在 --unset the proxy 之后对我有用