例えば、hub browse
で社内のGithub Enterpriseを使用したい場合、
~/.gitconfig
[hub]
host = host.github
とすれば良いが、githubでdotfileを管理していてhostを公開したくない場合は、.gitconfig.local
を作成し、
~/.gitconfig.local
[hub]
host = host.github
.gitconfig
で読み込む
~/.gitconfig
[include]
path = .gitconfig.local
と便利