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
[email protected]
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
[email protected]
[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 !!