1. 程式人生 > >Git為某個域名設置代理

Git為某個域名設置代理

tps git hub proxy 配置 代理 shell 設置 config

  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 = ""

Git為某個域名設置代理