git
Pro Git
Atlassian Git Tutorial
Pro Git 简体中文翻译
GitX
Shane
V2EX  ›  git

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

  •  
  •   Shane · Jan 22, 2013 · 5040 views
    This topic created in 4893 days ago, the information mentioned may be changed or developed.
    RT,在Terminal.app下无法git push ,一直未响应。。
    remote 用的是https://github.com/...
    7 replies    1970-01-01 08:00:00 +08:00
    ratazzi
        1
    ratazzi  
       Jan 22, 2013
    自己都说了是 ssh,用的却是 https 的地址
    run2
        2
    run2  
       Jan 22, 2013
    还是dns被污染了,检查~/.ssh/known_hosts 有没有记录,github.com,207.97。227.239 开头,把ip加到hosts里吧
    amoblin
        3
    amoblin  
       Jan 22, 2013
    修改remote:

    git remote set-url origin [email protected]:...
    Shane
        4
    Shane  
    OP
       Jan 22, 2013 via iPhone
    @ratazzi 可是我在浏览器中访问https没问题啊
    ratazzi
        5
    ratazzi  
       Jan 22, 2013
    @Shane git 要单独设置的,跟浏览器一点关系都没有
    ratazzi
        6
    ratazzi  
       Jan 22, 2013   ❤️ 1
    BOYPT
        7
    BOYPT  
       Jan 23, 2013
    你的remote是https,你需要一个http代理,然后

    env https_proxy=http://you-proxy:port git push
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1685 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 16:21 · PVG 00:21 · LAX 09:21 · JFK 12:21
    ♥ Do have faith in what you're doing.