--local
文書化されていない (または廃止された)フラグを使用する場合とフラグを使用しない場合に違いはありません。Git は、リポジトリ ルート ( ) で gitconfig を探すことはありません$repo_path/.gitconfig
。リポジトリローカル構成の変更は にあり.git/config
ます。
git help config
有効なオプションについて説明します。
--global オプションを書き込む場合: リポジトリ .git/config ではなくグローバル ~/.gitconfig ファイルに書き込みます。
For reading options: read only from global ~/.gitconfig rather than from
all available files.
--system オプションを記述する場合: リポジトリ .git/config ではなく、システム全体の $(prefix)/etc/gitconfig に書き込みます。
For reading options: read only from system-wide $(prefix)/etc/gitconfig
rather than from all available files.
(git バージョン 1.7.9 を使用)
これで検索してみることができます (リポジトリのルートから、git が /bin にインストールされていると仮定します):
grep subaddvim .git/config ~/.gitconfig /etc/gitconfig