Git – Could not resolve proxy
Rate this post

Last Updated on November 27, 2022 by Vikash Ekka

In this blog post, we will tell you how to FIX fatal: unable to access ‘https://gitlab.vetechno.in/vetechno/vetechno-code.git/’: Could not resolve proxy: xyz.vetechno.in

To resolve the problem, we need to remove the git proxies from the Server or System.

Step 1. Open the terminal.

Step 2. Paste the below command on the Terminal

git config --global -l

It will list the Global Git Configurations

Step 3. Then run the command below to unset all HTTP and https proxies.

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

Step 4. With the same command, you can now verify whether it has been removed from the list or not.

git config --global -l

Now you will be able to do git clone on your server or system.

OUTPUT

[root@ip-112-30-20-417 ~]# cd /tmp/
[root@ip-112-30-20-417 tmp]# git clone https://gitlab.vetechno.in/vetechno/vetechno-code.git
Cloning into 'vetechno-code'…
fatal: unable to access 'https://gitlab.vetechno.in/vetechno/vetechno-code.git/': Could not resolve proxy: xyz.vetechno.in
[root@ip-112-30-20-417 tmp]# git config --global -l
user.name=vetechno
user.email=vetechno@gmail.com
http.proxy=http://xyz.vetechno.in
[root@ip-112-30-20-417 tmp]#
[root@ip-112-30-20-417 html]# git config --global --unset-all http.proxy
[root@ip-112-30-20-417 html]# git config --global --unset-all https.proxy
[root@ip-112-30-20-417 html]# git config --global -l
user.name=vetechno
user.email=vetechno@gmail.com
[root@ip-112-30-20-417 tmp]# git clone https://gitlab.vetechno.in/vetechno/vetechno-code.git
Cloning into 'vetechno-code'…
Username for 'https://gitlab.vetechno.in':

Conclusion

Congratulations you have successfully resolved the issue – Git – Could not resolve proxy

Please let me know in the comment box if you are facing any issue. We will happy to assist you.

Happy Learning !!

By Vikash Ekka

Hi All, My name is Vikash Ekka from India. I’m the founder and tech editor of https://www.vetechno.in. I have completed my Graduation in BCA. I love to write technical articles like Windows, Linux & MAC Tutorials, Tips, Tricks, How To fix, Tutorials About Ethical Hacking & Cyber Security Guide, and Software Review. Currently, I have been working as an IT professional since 2018.

Leave a Reply

Your email address will not be published. Required fields are marked *