石家庄建站模板搭建,在深圳找工作上什么网,会员管理系统手机免费版,做相关性分析的网站Github操作网络异常笔记 1. 源由2. 解决2.1 方案一2.2 方案二 3. 总结 1. 源由
开源技术在国内永远是“蛋疼”#xff0c;这些政治问题对于追求技术的我们#xff0c;形成无法回避的障碍。
$ git pull
ssh: connect to host github.com port 22: Connection ti… Github操作网络异常笔记 1. 源由2. 解决2.1 方案一2.2 方案二 3. 总结 1. 源由
开源技术在国内永远是“蛋疼”这些政治问题对于追求技术的我们形成无法回避的障碍。
$ git pull
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.Please make sure you have the correct access rights
and the repository exists.虽然说目前有屏蔽和墙但对于技术“小虾米”们来说还是有各种途径访问也并未没有太多问题只不过折腾浪费大量的时间和金钱。
希望和平的世界摒弃政见未人类地球村多做些有意义的事情才是整理。
就像建一座桥缩短了通勤时间给大家带来便利。“政见”这种意识形态阻碍了技术的发展浪费的时间和金钱其实相当于谋财害命。
为什么要吐槽下因为我前些时间还是好好的突然就不行了。
2. 解决
百度不是万能的但是Google绝对在技术问题上搜索引擎一流直接5分钟找到方案。
2.1 方案一
Unable to use github ssh for anything (pull/clone/push etc) #54558
方案非常简单(22 over 433)命令如下
$ git config --global url.ssh://gitssh.github.com:443/.insteadOf gitgithub.com:防止有些内网的兄弟看不到直接截图 2.2 方案二
Configure Git to use a proxy
方案非常简单(git proxy)命令如下
$ git config --global http.proxy http://proxyUsername:proxyPasswordproxy.server.com:port$ git pull
fatal: unable to access https://github.com/stephendade/Rpanion-server.git/: Failed to connect to github.com port 443: Connection timed out$ cat ~/.gitconfig
[url ssh://gitssh.github.com:443/]insteadOf gitgithub.com:
$ git config --global http.proxy http://192.168.1.12:808
$ cat ~/.gitconfig
[url ssh://gitssh.github.com:443/]insteadOf gitgithub.com:
[http]proxy http://192.168.1.12:808$ git pull
remote: Enumerating objects: 8, done.
remote: Counting objects: 100% (8/8), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 8 (delta 6), reused 6 (delta 6), pack-reused 0
Unpacking objects: 100% (8/8), 927 bytes | 9.00 KiB/s, done.
From https://github.com/stephendade/Rpanion-server3bd162b..ddf955e master - origin/master
Updating 3bd162b..ddf955e
Fast-forwardserver/index.js | 69 ----------------------------------1 file changed, 35 insertions(), 34 deletions(-)3. 总结
希望这个世界能少一些政见多一些技术