[Git] Override config
Override config
- Purpose: Make all sub-directories(child directories) have different config(user name & email) from the global config
# ~/.gitconfig (global config)
[user]
name = "global_name"
email = "global_id@email.com"
# [includeIf "gitdir:~/path/to/folder"]
# path = ~/path/to/folder/.gitconfig_include
[includeIf "gitdir:~/Documents/"]
path = ~/Documents/.gitconfig_include
# ~/{path}/{to}/{folder}/.gitconfig_include
[user]
name = "override_name"
email = "override_name@email.com"