LoginSignup
0
0

More than 5 years have passed since last update.

GitHubのproxy設定

Last updated at Posted at 2016-11-12

GitHubのproxy設定を行う

ハードウェア

  • MacBook Pro (Retina, 13-inch, Mid 2014)
  • OS X Yosemite 10.10.5
  • iTerm2
  • zsh

設定方法

git configにproxyを設定する

 iTerm2で以下のコマンドを入力します。

git config --global http.proxy http://{proxy_name}:{port_number}
git config --global https.proxy http://{proxy_name}:{port_number}
git config --global url."https://".insteadOf git://

 実際には、{proxy_name}{port_number}の部分を各自のproxyの情報を入力してください。

git configを確認する

 iTerm2で以下のコマンドを入力します。

git config --list

git configのproxy設定をリセットする

 iTerm2で以下のコマンドを入力します。

git config --global --unset http.proxy
git config --global --unset https.proxy
0
0
0

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
0
0