LoginSignup
6
11

More than 5 years have passed since last update.

git config のオプション

Last updated at Posted at 2014-04-30

--global, --system のちがい

git configの設定には、--global--systemのオプションによって、その設定が影響する範囲が違ってくる

オプション 設定が影響する範囲 設定ファイルの保存場所
なし 各リポジトリの中だけ 各リポジトリの.git/config
--global ログインユーザー環境 ~/.gitconfig
--system OS環境全体 Gitの環境による1

設定が競合する場合、

オプションなし > --global > --system

の順で優先される


1.
- etc/gitconfig

- /opt/local/gitconfig

- usr/local/git/etc/gitconfig

6
11
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
6
11