基本的な使用のGit - Gitの設定

ファイルタイプ

  • 倉庫レベル(現在有効な倉庫)ローカル
  • ユーザレベル(現在のユーザー)のグローバル
  • システムレベル(グローバル・システム・アクティブ)システム

システムレベルのコンフィギュレーション

  • git config --system user.name 'JiYu'
  • git config --system user.email '[email protected]'
  • Gitの構成情報は、ディレクトリの/ etc / gitconfigファイルのインストール中に保存されています

ユーザーレベルの設定

  • git config --global user.name 'JiYu'
  • git config --global user.email '[email protected]'
  • 構成情報はCに格納された:\ Users \ユーザー管理ディレクトリを.gitconfig下

倉庫レベルの設定

  • git config user.name 'JiYu'
  • git config user.email '[email protected]'
  • 構成情報は、現在のディレクトリ.git / configに下の倉庫に格納されます。



ビューの設定情報

git config --local -l

プロフィールの編集

git config --local -e




おすすめ

転載: www.cnblogs.com/jiyu-hlzy/p/12194514.html