Fork me on GitHub

Git为某个域名设置代理

  1. 打开Git 配置文件

    vi ~/.gitconfig
    
  2. 添加如下配置:

    [http "https://github.com/"]
        proxy = http://127.0.0.1:1081
    [https "https://github.com/"]
        proxy = http://127.0.0.1:1081
    [http "https://my.comapnyserver.com/"]
        proxy = ""
    
posted @ 2018-08-04 13:04  morethink  阅读(2519)  评论(0编辑  收藏  举报