github for windows中git shell設置代理

字號+ 編輯: 种花家 修訂: 德玛西亚 來源: 开源中国 2023-09-12 我要說兩句(0)

github for windows的一大堆事:國内網路訪問不了怎麽辦?使用git shell出現Unknown SSL protocol error in connection 如何解決呢?

因爲國内特殊的網路環境,所以用github for windows,在使用git shell的clone命令是會出現這樣的情況

git clone https://code.google.com/p/android-os-monitor.osmonitor/
Cloning into android-os-monitor.osmonitor...
error: Unknown SSL protocol error in connection to code.google.com:443 while accessing https://code.google.com/p/android-os-monitor.osmonitor/info/refs

那麽解決這個問題的辦法就是用代理方式去訪問了,這裡的解決方法中用的是goagent,是在使用goagent的前提下才能執行下面的操作。

打開goagent軟體,會看到 listen Address:127.0.0.1:8087,那麽在git shell中執行的命令就是:

git config --global http.proxy "127.0.0.1:8087"
閲完此文,您的感想如何?
  • 有用

    1

  • 沒用

    0

  • 開心

    0

  • 憤怒

    0

  • 可憐

    0

1.如文章侵犯了您的版權,請發郵件通知本站,該文章將在24小時内刪除;
2.本站標注原創的文章,轉發時煩請注明來源;
3.交流群: 2702237 13835667

相關課文
  • 解決每次開機或者重啓電腦USB敺動異常

  • Git解決SSL证書錯誤

我要說說
網上賓友點評