by shigemk2

当面は技術的なことしか書かない

GITHUB_HOSTについて

hubコマンドについて。

デフォルトだとgithub.comのリポジトリを見に行こうとするけども、GITHUB_HOSTをイジったりhub.hostにドメインを追加したりすることでhubコマンドの向き先を変更することが出来る旨がmanコマンドに書かれてあったりする。

   GitHub Enterprise
       By default, hub will only work with repositories that have remotes which point to github.com. GitHub Enterprise hosts need to be whitelisted to configure hub to treat such remotes same as github.com:



           $ git config --global --add hub.host my.git.org



       The default host for commands like init and clone is still github.com, but this can be affected with the GITHUB_HOST environment variable:



           $ GITHUB_HOST=my.git.org git clone myproject