Fatal Error : Can't resolve host github.com

前端 未结 4 1570
你的背包
你的背包 2021-02-12 18:02

I am trying to push files to my remote repository from my local repository and I see this

fatal error : fatal: unable to access \'https://github.com/viniv

相关标签:
4条回答
  • I had a similar issue using the GitHub client on Windows 10. Running as administrator seemed to fix it.

    0 讨论(0)
  • 2021-02-12 18:41

    I recomend you to switch to ssh.

    You can get github ssh link from same place where https one. Then you just have to generate/add your ssh key to github profile. And that's it.

    0 讨论(0)
  • 2021-02-12 18:48

    In Windows, if you've any third party firewall (or internet activity monitor) installed, then configure them to allow your client to access outside connection.

    If there aren't any 3rd part firewallls, then go to control panel, search for firewall. Inside the firewall panel, select Add a new exception (or similar option). Allow the git client both inbound and outbound access.

    0 讨论(0)
  • 2021-02-12 18:57

    This solved my problem:

    http version:
    
    git config --global --unset http.proxy
    
    https version:
    
    git config --global --unset https.proxy
    
    0 讨论(0)
提交回复
热议问题