LoginSignup
14
12

More than 5 years have passed since last update.

いちいちgit configしたくないがgithubなどで公開したくない設定をする場合の対処法

Last updated at Posted at 2015-07-19

例えば、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

と便利

14
12
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14
12