Trying to clone from github to VM on google cloud compute engine

℡╲_俬逩灬. 提交于 2019-12-20 04:19:48

问题


Im running a VM instance on google cloud compute engine, trying to clone a repsitory on github onto it i get the folowing:

Cloning into 'Up'...
fatal: unable to access 'https://github.com/MyAccount/project.git/': Could not resolve host: github.com`

It's running on ubuntu 16.10 and i have checked both the firewall exceptions in the cloud console.

It is worth to note that I was able to clone node.js from github earlier.


回答1:


Are you using any systems that could be affected by the DDoS attack today? Github has been experiencing considerable problems today, and I have also had issues accessing / deploying.

http://www.cnbc.com/2016/10/21/major-websites-across-east-coast-knocked-out-in-apparent-ddos-attack.html

I would recommend waiting until later tonight or tomorrow, when GitHub announces everything is back to normal.

https://status.github.com/




回答2:


If you're desperate for a temporary solution today, like I was, then you can edit the /etc/hosts file and add their IP address manually.

192.30.253.113  github.com

And you will be able to push and pull from repositories. The website is still a little broken from other resources, but it minimally works.



来源:https://stackoverflow.com/questions/40183201/trying-to-clone-from-github-to-vm-on-google-cloud-compute-engine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!