LoginSignup
127
109

More than 5 years have passed since last update.

git config --global で設定した値を削除する方法

Posted at

とても基本的なことですが、知らないと困るし、忘れちゃうと困るので備忘録。
unset を使えば🆗です。

$ git config --global http.proxy proxy.exmple.com:8080

で設定した値を削除したい場合は unset を使って下記のようにする

$ git config --global --unset http.proxy

せっかくなので git の使い方

git の基本的な使い方

確認

$ git config --list
$ git config キー名

登録・更新

$ git config キー名 設定値 #ローカルリポジトリに設定
$ git config --global キー名 設定値 #全てのローカルリポジトリに設定

削除

$ git config --unset キー名
127
109
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
127
109