LoginSignup
23
21

More than 5 years have passed since last update.

GitでProxyの設定

Last updated at Posted at 2012-12-26

Proxyの設定が必要な環境下からのgitの利用設定

特に、cloneすらできないときの設定方法
Windowsだろうが、Macだろうが、Linuxだろうがこれで通るはず(Windowsは確認済み)

そもそもリポジトリの作成やcloneがまだの時は、git config だけ実行しようとしても、怒られるので、git config --system を実行する。
ひょっとしたら、git config --globalでもいいのかもしれない

]$ git config --system http.proxy http:{proxy_host}:{proxy_port}
]$ git config --system https.proxy https:{proxy_host}:{proxy_port}

これで、cloneが通るはず

]$ git clone https://github.com/hoge/fuga.git
23
21
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
23
21