Git Proxy开关
生活随笔
收集整理的這篇文章主要介紹了
Git Proxy开关
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
2019獨角獸企業重金招聘Python工程師標準>>>
這個是配合ShadowSocks使用的,在~/.bash_aliases或者~/.bash_profile中設置以下代碼:
#git?proxy?enable alias?gitpe="git?config?--global?http.proxy?socks5://127.0.0.1:1080;git?config?--global?http.sslVerify?false;git?config?--global?core.gitproxy?/Users/admin/proxy/gitproxy.sh;" #git?proxy?disable alias?gitpd="git?config?--global?--unset?http.proxy;git?config?--global?--unset?http.sslVerify;git?config?--global?--unset?core.gitproxy;"其中的“core.gitproxy /Users/admin/proxy/gitproxy.sh”是參考了這篇文章:http://www.v2ex.com/t/159503
敲gitpe回車就可以打開proxy,設gitpd就可以關閉proxy
轉載于:https://my.oschina.net/ioslighter/blog/546360
總結
以上是生活随笔為你收集整理的Git Proxy开关的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Oracle PL/SQL之LOOP循环
- 下一篇: YUV格式像素