githubã§è¤æ°ã¦ã¼ã¶ã使ãåãã
githubã¨ãããgitosisã¯sshã®éµã§ã¦ã¼ã¶ãå¤å®ãã¾ãã
è¨å®ã®ä»æ¹ã¯helpã§ãè¦ã¦ãã ããã
Redirecting...
Redirecting...
Redirecting...
èªåã®githubã¦ã¼ã¶ã¨ãã¦è²ããªãã·ã³ããgithubã使ãå ´åã¯ç°¡åã§ãã
ä¸è¨ã®èª¬æã®ã¨ããã«å
¬ééµã追å ãã¦ããã°ããã ãã§ãã
ã§ãåããã·ã³ã®åãã¦ã¼ã¶ã¢ã«ã¦ã³ãã§ã
è¤æ°ã®githubã¦ã¼ã¶ã¨ãã¦githubã使ãã®ã¯ã©ãããã°ãããã¨ããã¨ã
ãã¹ãã®ã¨ã¤ãªã¢ã¹ãè¨å®ãã¦å¥ã®ç§å¯éµãè¨å®ãã¦ããã°å¤§ä¸å¤«ã§ãã
入門OpenSSH / 第4章 OpenSSH を使う
âã®ä¾ã¯è¤æ°HostNameã¸ã®SSHæ¥ç¶ã®ç®¡çã§ããã
~/.ssh/config で簡単に複数ホストへのSSH接続を管理する - すぱぶろ
åä¸HostNameã§å¥Hostã¨ãããµãã«ãåºæ¥ãã®ã§ããã使ãã¾ãã
å
ã
ã®githubã¦ã¼ã¶ã§ä½¿ã£ã¦ããç§å¯éµãid_rsaã¨ãã¦ã
å¥ã®githubã¦ã¼ã¶ã§ä½¿ãç§å¯éµãid_rsa.anotherã¨ãããã
~/.ssh/config ã«ä»¥ä¸ã®ããã«è¨è¿°ãã¾ãã
# monjudoh Host gist.github.com HostName gist.github.com User git IdentityFile ~/.ssh/id_rsa IdentitiesOnly yes Host github.com HostName github.com User git IdentityFile ~/.ssh/id_rsa IdentitiesOnly yes # another Host gist.github.com-another HostName gist.github.com User git IdentityFile ~/.ssh/id_rsa.another IdentitiesOnly yes Host github.com-another HostName github.com User git IdentityFile ~/.ssh/id_rsa.another IdentitiesOnly yes
git@github.com:another/hoge.git ãcloneãã¦ãããå ´åã
以ä¸ã®ããã«ããã°ãanotherã¦ã¼ã¶ã¨ãã¦cloneãã¦ãããã¨ãåºæ¥ã¾ãã
git clone [email protected]:another/hoge.git
ã¢ã¤ã³ã³ã«ã¤ãã¦
githubã¯github.tokenã¨user.emailã®è¨å®ã«ãã£ã¦
changesetã«ã©ã®ã¢ã¤ã³ã³ãåºãã決ãã¦ãããããªã®ã§ã
git config --local user.email
ã§ãå¥ã®ã¡ã¼ã«ã¢ãã¬ã¹ãè¨å®ãã¦ããã¾ãããã
ããããããªãã¨ã客ãããè¦ããªãã¸ããªã«äºæ¬¡å
ãã£ã©ã¢ã¤ã³ã³ã並ã¶ãªã©ã¨ããäºæ
ãèµ·ããå¯è½æ§ãããã¾ãã
ããã§å¥ã«åé¡ããªããªã©ã¨ããå¯è½æ§ãããã¾ãã