How to remove proxy from git I try, but still showing the error how to resolve it?

27,393

Solution 1

After using these comands

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

These two commands work for me after --unset the proxy

Solution 2

Use this command to get the list of all proxy defined, and then use --unset to disable them.

git config --global -l

Unset with the following command

git config --global --unset http.proxy
Share:
27,393

Related videos on Youtube

badarshahzad
Author by

badarshahzad

Updated on September 18, 2022

Comments

  • badarshahzad
    badarshahzad over 1 year

    My git is stuck whenever now I try pull,push or clone I remove the proxy but still no positive response from git.

    Last time I used this command for proxy:

    git config --global http.proxy 172.16.0.2:8080
    

    I try these commands:

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

    but still getting this response when I clone the repository or want to pull or push!

    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
    
  • badarshahzad
    badarshahzad over 7 years
    this link lead to my GitHub profile! What do you mean?
  • Elder Geek
    Elder Geek over 7 years
    Actually it links to the repositories page of that profile. Attempting to access 'github.com/badarshahzad/SEGP_Group10.git' results in a 404 error. this means that object is not there (whether this is temporary or permanent is unknown) and has nothing to do with your proxy.
  • Sajesh Kumar
    Sajesh Kumar over 7 years
    Most likely it's a private repository so it makes sense that you get a 404
  • Elder Geek
    Elder Geek over 7 years
    @GerhardBurger Ok, but it's his repository. Feel free to write a better answer!