• 追加された行はこの色です。
  • 削除された行はこの色です。
#author("2020-09-17T09:09:39+09:00","default:ryuichi","ryuichi")
#author("2020-09-17T09:11:50+09:00","default:ryuichi","ryuichi")
* 秘密鍵を指定してGitHubからgit cloneする [#e6ce46fb]

** 前提 [#v7a2575f]

*** GitHubのリポジトリのURL [#s13c74f0]

 git@github.com:mycompany/myrepo.git

** 手順 [#n59e3b17]

*** .ssh/config [#jb6a5c1a]
*** .ssh/configの編集 [#jb6a5c1a]

 Host mycompany-github
    HostName github.com
    User git
    IdentityFile ~/.ssh/mycompany.key
    IdentitiesOnly yes

- ここではHost名をmycompany-github、秘密鍵をmycomapny.keyとした

*** git cloneの実行 [#fc325de1]

 git clone git@mycompany-github:mycompany/myrepo.git


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS