1 Overview
- Configuration file management commands git
- Configuring regarded as the meta git
2. Scope
- Three kinds
- --local
- --global
- --system
- priority
- 1 > 2 > 3
- Specific documents
- slightly
- Defaults
- This is not yet known
- all
- This is not yet known
- use
command
> git config [--local|--global|--system] [option]
3. Command
1. Fields
View
# 包括了 三个范围 的 list > git config --list # 获取单个字段 > git config --get <name>
Add to
> git config --add <name> <value>
- modify
- Repeat to add
- Scenes
- With add, already exist, it will add a
- It is behind the subject
- Scenes
- Renaming variables
- Seemingly not
- Repeat to add
- delete
- To delete a
- Scenes
- A field presence, and only one value
command
> git config --unset <name>
- Scenes
- To delete multiple
- Scenes
- Add multiple sets using the same variable
- Use the Delete one will prompt field has multiple values, and can not be deleted
command
> git config --unset-all <name>
- Scenes
- To delete a
4. Profiles
- Outline
- Temporarily slightly
5. questions
- Field
- Fields are just added it
- Yes, sure
- Meaning the field
- In help documentation Variables field below
- There are all the fields git support, and explain
- git config --help
- In help documentation Variables field below
- Rename the field
- Seemingly not
- Fields are just added it
- section
- what is this
- Defaults
- Without default file is valid
- Command confusion
- Outline
- Many places, the same kind of operation, there are two commands
- I do not like this
- Likely to cause confusion
- I prefer a similar style like the restful
- To determine the specific resource command
- To operate on a resource request specific operation by different
- For example git
View
> git config <name>
Add to
> git config <name> <value>
- Outline