You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I create a new repository in my local and complete the changes . After that I opened my github desktop to push the changes to my GitHub repo. As soon as i click the publish button it gave me this error
Hey @shiv1490. This error message seems to indicate a connectivity problem. Do you currently have any antivirus software installed other than the default antivirus that ships with Windows?
Additionally, are you using a proxy server to access the internet? Git requires special configuration to work behind proxy servers, see #1998, #2789
Reacted by nadinantire, Carlos Eduardo Angulo Ustarez, Arnulfo Rojas, Zahra Salarian, Ryan Mark Hiluano, Jee Won (Kyra) Park, Tawanda Mutasa , Shehroze Talat, Hritik Khurana, man-of-sbk and 14 more
Reacted by Ala Eddine Menai (Ala), kishoreshine49 and Lynx Pardelle
Reacted by JM, Roman B, Chenxi Li, Wenyao Liu, Karla Jáurez, UENO, M., Mohannd Lababidy, CocoTheCog, Jose Chavarría, javier and 106 more
Reacted by othwsav, Mandeezo, Aslan S., NUSRAT ZABEEN, Daniel Bell, pbloarz, Mohammad Ullah, Edson Dos Santos, Pradyumna Yadav, WhiteDevil2101 and 6 more
Reacted by Jee Wen Jie, maciasvt, John Knight, Amine, Lukas S., priyanshi99, Aditya, Imadeddine Lakhdar, Aaron, Disha Srivastava and 12 more
Reacted by DMSlobodianiuk, Matheus Leite, nick, NUSRAT ZABEEN, Alex, lukehamil55, Jenni Nemeth, jjaramillo-enersinc, aahdbshara and Umair
Reacted by Mostafa Hessen, Joan Roig, LUX14Zx0x12EC, DMSlobodianiuk, Matheus Leite, syarif, lucashenriquesilvahorta23, Yi C, Kittywyk, wenranlu and 10 more
Reacted by lmn6demon, DMSlobodianiuk, Matheus Leite, NUSRAT ZABEEN, hkym1337, lukehamil55, Jenni Nemeth, aahdbshara and Umair
Reacted by Felipe Augusto, Lakhpat Meena, Alinliang9, rupav jain, pobc, Huayi(Justin) Geng, Juelun, Giovana de Lucca, Godwin L, josephycodev and 302 more
Reacted by Ding Peng, Mossa Sameer, Morten Syhler, Almeida, Emmanuel Paul Moralde, Conor McGrath, Makenson Petit-Fils Clervil, Mohamed Aleya, Hoang Mi Pham, Dinesh Jani and 38 more
Reacted by Badr Eddine, Morten Syhler, Jorge Baralt, Srikanth Gadicherla, Olena Rostovtseva, mehdiMj, ullmans, hamidstihl, Alexey Naumov, Freebase3941 and 14 more
Reacted by oles, poonampa, UENO, M., Nathanlee2010, JonathanLehner, Alan Grijalva, Mariel Herñamda, rsr8infinity, Morten Syhler, Maxence Warzecha and 39 more
Reacted by pobc, poonampa, UENO, M., Rishab Kumar, 周大瓜, Thuy Dung LE, rsr8infinity, Morten Syhler, Maxence Warzecha, Jorge Baralt and 59 more
Reacted by sagar ghimire, Morten Syhler, Jorge Baralt, subasree55, Srikanth Gadicherla, AlexanderBecerraLinares, Shivam Yaduka, lahrachomar, Ch Ammar Sultan, Yash Paneliya and 31 more
Reacted by Orion Montoya C, Ch Ammar Sultan, BTG001, Phung Nguyen, Sandipan, Freebase3941, Vsevolod Cherepashkin, Gaurav Panta, deppwang, codeshort and 17 more
This method works for me!
reboot>
then establish connection to internet...
then>
#git config --global --unset http.proxy
#git config --global --unset https.proxy
then>
#git clone https://(.........................................).git
Reacted by Jim Fisk, nubychan, Sean Murphy, snehagxp, Luiz Carlos, Pablo Ossandón Toro (posseidon), Alberto Nordmann Garagorry, Kan, Ndeh Khan, manjunath-tarams and 21 more
Reacted by Deba Mishra, sooraj2589, rkarim, ArtsemHluzd, Makenson Petit-Fils Clervil, walterEri, zhiiw, Michael Tennyson, aengtech, Navid Barsalari and 2 more
Reacted by nubychan, Deba Mishra, Alberto Nordmann Garagorry, aRyski, LanCeLoT, Nithin Puthalath Manoj and Miguel Gargallo
Reacted by nubychan, snehagxp, aliaaramzani, O+M Plus, David Dahan, Nithin Puthalath Manoj, Miguel Gargallo and archu2008
Reacted by nubychan, Alberto Nordmann Garagorry, Ndeh Khan, E. Caoili, aliaaramzani, Srikanth , Wendry Koralis Poueriet Martinez, knav777, Nithin Puthalath Manoj, Miguel Gargallo and 4 more
@davidbeery The --unset flag can fix the issue where Git will attempt to establish a connection through an invalid proxy configuration (i.e. the user is actually not behind a proxy), which causes Git operations to error out. If you are using a proxy then you will want to keep that proxy configuration line in order to ensure Git operations work successfully.
I encountered this same issue today for the first time and immediately noticed it had to do with my internet connectivity. I realized my internet router went off, which was the reason for the error. As soon as I went back online, the push command worked.
in my case its because windows defender public firewall.
i use wsl2 ubuntu 20 distro, usually i can push and fetch, but after some changes in host windows, wsl2 cant push and fetch. The ping github.com also fail. after some searching for issue, i try disable windows defender public firewall, and then try to do git commands and it works again.
Se você está enfrentando problemas de resolução de host no Kali Linux e precisa resolver o problema temporariamente, pode criar um script que ajuste as configurações do arquivo /etc/resolv.conf. Certifique-se de entender que esta é uma solução temporária, e você deve procurar corrigir o problema subjacente com as configurações de rede ou DNS em seu ambiente. Aqui está um exemplo de um script simples que você pode criar:
Crie um script chamado, por exemplo, fix_dns.sh:
**#!/bin/bash
# Backup do arquivo resolv.conf
sudo cp /etc/resolv.conf /etc/resolv.conf.backup
# Substitui as configurações do arquivo resolv.conf
echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf
echo "nameserver 8.8.4.4" | sudo tee -a /etc/resolv.conf
# Mensagem informativa
echo "Configurações DNS temporárias aplicadas. Tente novamente."
# Exemplo de comando para clonar o repositório Git após aplicar as configurações
# git clone https://github.com/niranjandasMM/TEST.git/
# Restaure as configurações originais (opcional)
# sudo cp /etc/resolv.conf.backup /etc/resolv.conf**
Certifique-se de tornar o script executável com o comando:
chmod +x fix_dns.sh
Execute o script com:
sudo bash fix_dns.sh
Este script faz backup do arquivo resolv.conf original, substitui temporariamente as configurações com servidores DNS públicos do Google (8.8.8.8 e 8.8.4.4) e exibe uma mensagem informativa. Lembre-se de que isso é uma solução temporária e não corrige o problema subjacente na configuração do seu ambiente.
fix git clone unable resolve hosts name
vi /etc/hosts
in this and localhosts and localdomain like 127.0.0.1. and it's opposite section mention localhosts and localdomain
sudo service networking restart
and start git clone
The error message you're seeing,fatal: unable to access 'https://github.com/....': Could not resolve host: github.com, suggests a DNS resolution issue, meaning your computer is unable to find the IP address associated with github.com. This can be due to various reasons such as network connectivity issues, DNS server problems, or local DNS cache issues. Here are a few steps you can take to troubleshoot and potentially resolve the issue:
Check your Internet connection:
Ensure that your Mac is connected to the internet. You can try accessing other websites or pinging a well-known site.
ping -c 4 google.com
Flush your DNS cache:
This can help if the issue is related to a corrupted or outdated DNS cache.
if your computer failed to access github.com by git or curl command like next:
C:\Users\admin>ping github.com
Ping request could not find host github.com. Please check the name and try again.
C:\Users\admin>curl -v github.com
* Rebuilt URL to: github.com/
* Could not resolve host: github.com
* Closing connection 0
curl: (6) Could not resolve host: github.com
C:\Users\admin>curl -v github.com --proxy socks5://192.168.29.1:1080
* Rebuilt URL to: github.com/
* Trying 192.168.29.1...
* TCP_NODELAY set* SOCKS5 communication to github.com:80
* Could not resolve host: github.com
* Closing connection 0
curl: (6) Could not resolve host: github.com
and if you can get 301 redirect over a socks5 proxy:
# `20.205.243.166` is the IP of github.com, you can found it at https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/about-githubs-ip-addresses# `192.168.29.1:1080` is your socks5 proxy
C:\Users\admin>curl -v 20.205.243.166 --proxy socks5://192.168.29.1:1080
* Rebuilt URL to: 20.205.243.166/
* Trying 192.168.29.1...
* TCP_NODELAY set* SOCKS5 communication to 20.205.243.166:80
* SOCKS5 connect to IPv4 20.205.243.166 (locally resolved)
* SOCKS5 request granted.
* Connected to 192.168.29.1 (192.168.29.1) port 1080 (#0)> GET / HTTP/1.1
> Host: 20.205.243.166
> User-Agent: curl/7.55.1
> Accept: */*>< HTTP/1.1 301 Moved Permanently
< Content-Length: 0
< Location: https://20.205.243.166/
<* Connection #0 to host 192.168.29.1 left intact
it means that your computer failed to resolve DNS but your proxy socks5 works and you can use git over this proxy when configured properly.
using http:// or socks5h:// (not socks5://) will enable your git to access github.com
git config --global http.proxy http://192.168.29.1:8088 # use http proxy
git config --global https.proxy socks5h://192.168.29.1:1080 # or use socks5 proxy
git clone https://github.com/abhinavsingh/proxy.py
Activity
niik commentedon Jun 5, 2018
Hey @shiv1490. This error message seems to indicate a connectivity problem. Do you currently have any antivirus software installed other than the default antivirus that ships with Windows?
Additionally, are you using a proxy server to access the internet? Git requires special configuration to work behind proxy servers, see #1998, #2789
shiv1490 commentedon Jun 11, 2018
Hi All,
Issue is resolved now. This was happening because I was behind a corporate proxy. I used below commnad to resolve the issue
git config --global http.proxy http://proxyuser:[email protected]:8080
Thanks
Jaaess commentedon Jun 22, 2018
@shiv1490 👍
the command worked with me.
git config --global http.proxy http://proxyuser:[email protected]:8080
imsrgadich commentedon Aug 14, 2018
Check this out as well. it helped me.
DoganM95 commentedon Nov 27, 2018
in my case it was a firewall rule (cmd not having internet permission), created by the company i work for
kutajay commentedon Feb 3, 2019
Tried the following
git config --global http.proxy http://proxyuser:[email protected]:8080 and
git config --global --unset http.proxy
git config --global --unset https.proxy
but none seems to work for me; could it be a possible internet strength isssue?
SethuSP commentedon Apr 4, 2019
I too tried the same. It does not work for me as well and i do not think it is related to internet strength. Not sure why.
JCDigital27 commentedon Apr 12, 2019
This method works for me!
reboot>
then establish connection to internet...
then>
#git config --global --unset http.proxy
#git config --global --unset https.proxy
then>
#git clone https://(.........................................).git
davidbeery commentedon Jun 17, 2019
Why does this fix work?
What is it about the http/s.proxy global config that interferes with the internet connection?
steveward commentedon Jun 17, 2019
@davidbeery The
--unsetflag can fix the issue where Git will attempt to establish a connection through an invalid proxy configuration (i.e. the user is actually not behind a proxy), which causes Git operations to error out. If you are using a proxy then you will want to keep that proxy configuration line in order to ensure Git operations work successfully.RoderickKennedy commentedon Sep 5, 2019
@JCDigital27 i have the same problem, whe i use the solution, but it not work?
when i use curl -I https://github.com, it show the error.
curl: (6) Could not resolve host: github.com; Unknown error
manishak-kumari commentedon Sep 16, 2019
sadkisoft commentedon Sep 19, 2019
Please i need a help
My code is :
$url="https://api.sellercenter.net/?Action=GetProducts&UserID=***&Signature=***&Format=JSON";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 5);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_MAXREDIRS, 3);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept: application/json'));
the result is 👍
int 6
string 'Could not resolve host: api.sellercenter.net; Host not found' (length=60)
int 0
boolean false
72 remaining items
niranjandasMM commentedon May 16, 2023
Try restarting your system and try again all these :
git config --global http.proxy http://proxyuser:[email protected]:8080
git config --global --unset http.proxy
git clone https://github.com/niranjandasMM/TEST.git
Naggenda commentedon May 24, 2023
this worked for me
SriSomanaath commentedon Jun 10, 2023
thanks this worked for me
git config --global --unset http.proxy
Zahid43300 commentedon Jun 24, 2023
None of this worked for me can anyone help me 🥲 i am using kali linux on phone
mahfuz-swe commentedon Jul 23, 2023
#git config --global --unset http.proxy
#git config --global --unset https.proxy
Upon commands helped me, you can try also
davik4life commentedon Sep 27, 2023
I encountered this same issue today for the first time and immediately noticed it had to do with my internet connectivity. I realized my internet router went off, which was the reason for the error. As soon as I went back online, the push command worked.
alvinChristianto commentedon Dec 7, 2023
in my case its because windows defender public firewall.
i use wsl2 ubuntu 20 distro, usually i can push and fetch, but after some changes in host windows, wsl2 cant push and fetch. The ping github.com also fail. after some searching for issue, i try disable windows defender public firewall, and then try to do git commands and it works again.
EduMRX commentedon Jan 2, 2024
Se você está enfrentando problemas de resolução de host no Kali Linux e precisa resolver o problema temporariamente, pode criar um script que ajuste as configurações do arquivo /etc/resolv.conf. Certifique-se de entender que esta é uma solução temporária, e você deve procurar corrigir o problema subjacente com as configurações de rede ou DNS em seu ambiente. Aqui está um exemplo de um script simples que você pode criar:
Crie um script chamado, por exemplo, fix_dns.sh:
Certifique-se de tornar o script executável com o comando:
chmod +x fix_dns.shExecute o script com:
sudo bash fix_dns.shEste script faz backup do arquivo
resolv.conforiginal, substitui temporariamente as configurações com servidores DNS públicos do Google (8.8.8.8 e 8.8.4.4) e exibe uma mensagem informativa. Lembre-se de que isso é uma solução temporária e não corrige o problema subjacente na configuração do seu ambiente.Goku9689 commentedon Apr 15, 2024
fix git clone unable resolve hosts name
![Uploading Screenshot_20240415-211909.png…]()
vi /etc/hosts
in this and localhosts and localdomain like 127.0.0.1. and it's opposite section mention localhosts and localdomain
sudo service networking restart
and start git clone
CodeNKoffee commentedon Jun 26, 2024
The error message you're seeing,
fatal: unable to access 'https://github.com/....': Could not resolve host: github.com, suggests a DNS resolution issue, meaning your computer is unable to find the IP address associated with github.com. This can be due to various reasons such as network connectivity issues, DNS server problems, or local DNS cache issues. Here are a few steps you can take to troubleshoot and potentially resolve the issue:Ensure that your Mac is connected to the internet. You can try accessing other websites or pinging a well-known site.
This can help if the issue is related to a corrupted or outdated DNS cache.
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponderdef-fun commentedon Jul 9, 2024
To anyone who is using git CMD over socks5 proxy:
if your computer failed to access github.com by git or curl command like next:
and if you can get 301 redirect over a socks5 proxy:
it means that your computer failed to resolve DNS but your proxy socks5 works and you can use git over this proxy when configured properly.
using
http://orsocks5h://(notsocks5://) will enable your git to access github.comfacebook-oauth commentedon Feb 1, 2025
It all led to this https://preprocessor.space/questions/error-message-unset-not-functioning-properly-in-php answer
jlmwangi commentedon Feb 16, 2025
none of the solutions worked for me
ziyoviddin7 commentedon Mar 23, 2025
It worked for me:
1)Open the DNS configuration file:
sudo nano /etc/resolv.conf2)Add the following lines:
3)Save the file (Ctrl + O, then Enter) and close it (Ctrl + X)
sudo systemctl restart systemd-networkdor
sudo systemctl restart NetworkManageror
sudo systemctl restart networkingPrachi-Kurhade commentedon Nov 10, 2025
I am behind corporate proxy:
I tried with this but not working
git config --global http.proxy http://proxyuser:[email protected]:8080/
error:-
fatal: unable to access 'https://github.com/Prachi-Kurhade/Frontend.git/': Could not resolve proxy: proxy.server.com