Created
March 23, 2018 07:48
-
-
Save hfm/40f15d49512668a40ee4b0cd0e7731d8 to your computer and use it in GitHub Desktop.
Revisions
-
hfm created this gist
Mar 23, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ まず、`$HOME/.gitconfig` の `[hub]` の host に GHE のホストを追加するために、以下のコマンドを実行します。 ```sh git config --global --add hub.host your.ghe.com ``` 実行後、 `$HOME/.gitconfig` に GHE のホストが登録されます。 ```ini [hub] host = your.ghe.com ``` 基本はコレだけ。GHE のリポジトリを clone し、 `git fork` を打てば GHE 側の自分のところへ fork 出来るようになっています。 以降、 `git create` でリポジトリをリモートに作ろうとしたときに、 ```console $ git create Select host: 1. your.ghe.com 2. github.com > ``` こういう風に質問もしてくれるようになります。便利。