【问题标题】:I remove proxy from git but still showing the error how to resolve it?我从 git 中删除了代理,但仍然显示错误如何解决?
【发布时间】:2016-10-18 16:15:07
【问题描述】:

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

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

git config --global http.proxy 172.16.0.2:8080

我尝试以下命令:

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

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

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 out

【问题讨论】:

    标签: linux git github proxy


    【解决方案1】:

    使用这些命令后

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

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

    sudo apt-get update
    sudo reboot
    

    之后我的 git 命令开始工作

    【讨论】:

      猜你喜欢
      • 2018-03-11
      • 2019-09-26
      • 2021-03-31
      • 2014-08-10
      • 2013-12-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多