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

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

  •  
  •   Shane · Jan 22, 2013 · 5333 views
    This topic created in 5058 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
    ratazzi
    PRO
    Jan 22, 2013
    1
    自己都说了是 ssh,用的却是 https 的地址
    run2
    run2
    Jan 22, 2013
    2
    还是dns被污染了,检查~/.ssh/known_hosts 有没有记录,github.com,207.97。227.239 开头,把ip加到hosts里吧
    amoblin
    amoblin
    Jan 22, 2013
    3
    修改remote:

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

    env https_proxy=http://you-proxy:port git push
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1875 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 15:30 · PVG 23:30 · LAX 07:30 · JFK 10:30
    ♥ Do have faith in what you're doing.