git config fodler level code example

Example 1: git config fodler level

[user]
name = John Smith
email = [email protected]

Example 2: git config fodler level

[user]
name = John Smith
email = [email protected]

Example 3: git config fodler level

[includeIf "gitdir:~/company_a/"]
  path = .gitconfig-company_a
[includeIf "gitdir:~/company_b/"]
  path = .gitconfig-company_b

Example 4: git config fodler level

$ git config --system user.name "John Doe"

Example 5: git config fodler level

$ git config --global user.name "John Doe"

Example 6: git config fodler level

$ git config user.name "John Doe"

Tags:

Misc Example