#author("2020-09-17T09:10:51+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]
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