为什么SSH + SOCKS代理下不能git push?

2013-01-22 18:29:56 +08:00
 Shane
RT,在Terminal.app下无法git push ,一直未响应。。
remote 用的是https://github.com/...
4374 次点击
所在节点    git
7 条回复
ratazzi
2013-01-22 18:32:33 +08:00
自己都说了是 ssh,用的却是 https 的地址
sobigfish
2013-01-22 20:16:40 +08:00
还是dns被污染了,检查~/.ssh/known_hosts 有没有记录,github.com,207.97。227.239 开头,把ip加到hosts里吧
amoblin
2013-01-22 20:32:42 +08:00
修改remote:

git remote set-url origin git@github.com:...
Shane
2013-01-22 22:20:54 +08:00
@ratazzi 可是我在浏览器中访问https没问题啊
ratazzi
2013-01-22 22:28:00 +08:00
@Shane git 要单独设置的,跟浏览器一点关系都没有
ratazzi
2013-01-22 22:28:28 +08:00
BOYPT
2013-01-23 11:33:43 +08:00
你的remote是https,你需要一个http代理,然后

env https_proxy=http://you-proxy:port git push

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/58426

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX