- ïŒ1ç« ïŒWindowsçšã®Gitã®ã€ã³ã¹ããŒã«
- ïŒ1ç« ïŒmacOSçšã®Gitã®ã€ã³ã¹ããŒã«
- ïŒ6ç« ïŒHTTPSã¢ã¯ã»ã¹ã®ã»ããã¢ãã
- ïŒ6ç« ïŒSSHã¢ã¯ã»ã¹ã®ã»ããã¢ãã
- ïŒ7ç« ïŒãªã¢ãŒããªããžããªãŒã®äœæ
- ïŒ12ç« ïŒãã«ãªã¯ãšã¹ãïŒããŒãžãªã¯ãšã¹ãïŒã®äœæ
æ¬çš¿ã¯ãæ¬æžã®GitHubãªããžããªãŒïŒhttps://github.com/gitlearningjourney/learning-gitïŒã®README.md
ãã¡ã€ã«ãæ¥æ¬èªã«ç¿»èš³ããå¿
èŠã«å¿ããŠå çã»ä¿®æ£ãããã®ã§ããæ¬æžãèªãããã§ã®è£è¶³è³æãšããŠäœ¿çšããŠãã ããããªãããã®å
容ã¯æ¬æžã®æ¥æ¬èªçã®ç¿»èš³æç¹ã§ã®ãã®ã§ãã®ã§ãææ°ã®æ
å ±ã«ã€ããŠã¯ãäžèšã®GitHubãªããžããªãŒãåç
§ããŠãã ããã
Windowsã§Gitãã€ã³ã¹ããŒã«ããã«ã¯ãGitã®å ¬åŒWebãµã€ãã§Windowsçšã®ããŠã³ããŒãããŒãžïŒhttps://git-scm.com/download/winïŒã«ã¢ã¯ã»ã¹ããŸãããã®ããŒãžã«ã¯ãGitãããŠã³ããŒãããããã®æ¹æ³ãããã€ãæ瀺ãããŠããŸãã
æ¬æžã®ããã«ã¯ãæåã«æžãããŠããã¡ã€ã³ã®ããŠã³ããŒããªãã·ã§ã³ã䜿ã£ãŠGitãã€ã³ã¹ããŒã«ããããšãå§ããŸããClick here to downloadãšãããªã³ã¯ãéžæãããšãã€ã³ã¹ããŒã©ãŒãããŠã³ããŒããããŸãã
ãã®ããŠã³ããŒããªãã·ã§ã³ã䜿çšããããšã§ã確å®ã«ããŒãžã§ã³ã2.28以äžã§ããGitãã€ã³ã¹ããŒã«ãããŸããæ¬æžã§çŽ¹ä»ããŠãããã¹ãŠã®ã³ãã³ãã䜿ãããã«ã¯ããã®ããŒãžã§ã³ä»¥äžã§ããããšãå¿ èŠã§ãã
次ã«ãããŠã³ããŒãããã€ã³ã¹ããŒã©ãŒãå®è¡ããã¹ããããã€ã¹ãããã§ã€ã³ã¹ããŒã«ããã»ã¹ãå®äºããŸãã衚瀺ããããã¹ãŠã®ç»é¢ã§ããã©ã«ãã®èšå®ããã®ãŸãŸåãå ¥ããNextãã¯ãªãã¯ããŠé²ã¿ãŸããæåŸã®ç»é¢ã§ïŒ»installãã¯ãªãã¯ãããšãã€ã³ã¹ããŒã«ãå§ãŸããŸããã€ã³ã¹ããŒã«ãçµãããšå®äºç»é¢ã衚瀺ãããã®ã§ãFinishãæŒããŠçµäºããŸãã
Gitãæ£åžžã«ã€ã³ã¹ããŒã«ããããã©ããããã§ãã¯ããã«ã¯ãGit Bashã®ã³ãã³ãã©ã€ã³ãŠã£ã³ããŠãéããgit version
ã³ãã³ãã䜿ã£ãŠGitã®ããŒãžã§ã³ããã§ãã¯ããŸããå®è¡æé D-1ã«åŸã£ãŠãããã確èªããŠã¿ãŸãããã
ã | å®è¡æé D-1 |
---|---|
1. | ã³ãã³ãã©ã€ã³ã¢ããªã±ãŒã·ã§ã³ã®Git Bashãæ€çŽ¢ããã³ãã³ãã©ã€ã³ãŠã£ã³ããŠãéããŸãã |
2. | $ git version git version 2.38.1.windows.1 |
git version
ã³ãã³ãã®åºåçµæã¯ãã€ã³ã¹ããŒã«ãããGitã®ããŒãžã§ã³ã瀺ããŠããŸãã
ããã§ãWindowsçšã®Gitã®ã€ã³ã¹ããŒã«ãå®äºããŸããã
macOSã§Gitãã€ã³ã¹ããŒã«ããã«ã¯ãGitã®å ¬åŒWebãµã€ãã§macOSçšã®ããŠã³ããŒãããŒãžïŒhttps://git-scm.com/download/macïŒã«ã¢ã¯ã»ã¹ããŸãããã®ããŒãžã«ã¯ãGitãããŠã³ããŒãããããã®æ¹æ³ãããã€ãæ瀺ãããŠããŸãã
æ¬æžã®ããã«ã¯ãHomebrewã䜿ã£ãŠGitãã€ã³ã¹ããŒã«ããããšãå§ããŸãã
Homebrewã䜿ã£ãŠGitãã€ã³ã¹ããŒã«ããããšã§ã確å®ã«ããŒãžã§ã³ã2.28以äžã§ããGitãã€ã³ã¹ããŒã«ãããŸããæ¬æžã§çŽ¹ä»ããŠãããã¹ãŠã®ã³ãã³ãã䜿ãããã«ã¯ããã®ããŒãžã§ã³ä»¥äžã§ããããšãå¿ èŠã§ãã
Homebrewã䜿ã£ãŠGitãã€ã³ã¹ããŒã«ããã«ã¯ããŸãHomebrewãã€ã³ã¹ããŒã«æžã¿ã§ãªããã°ãªããŸãããHomebrewããŸã ã€ã³ã¹ããŒã«ããŠããªãå Žåã¯ãå®è¡æé D-2ã«é²ãã§ãã ããã
ã | å®è¡æé D-2 |
---|---|
1. | Homebrewã®Webãµã€ãïŒhttps://brew.sh/ja/ïŒã«ã¢ã¯ã»ã¹ããHomebrewãã€ã³ã¹ããŒã«ããããã®ã³ãã³ãïŒãã€ã³ã¹ããŒã«ãã®äžã«æžãããŠããã³ãã³ãïŒãã³ããŒããŸããã³ãã³ãã®å³åŽã«ãããã¿ã³ãã¯ãªãã¯ãããšãç°¡åã«ã³ããŒã§ããŸãã |
2. | ã³ãã³ãã©ã€ã³ãŠã£ã³ããŠãéããã¹ããã1ã§ã³ããŒããã³ãã³ããããŒã¹ãããŸãã次ã®ã¹ããã3ã§ãã®ã³ãã³ããå®è¡ãããšãã«ã¯ãã³ãã³ãã©ã€ã³ã§ã®ãã£ã¬ã¯ããªãŒã®å Žæã¯éèŠã§ã¯ãããŸããã |
3. | $ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ===> Checking for sudo access (which may request your password)... Password: |
4. | ãã¹ã¯ãŒããå ¥åããããã«æ±ããããã®ã§ãèªåã®ã³ã³ãã¥ãŒã¿ãŒã§ã®ãŠãŒã¶ãŒãã¹ã¯ãŒããå ¥åããŸãã |
5. | EnterããŒãæŒããŠãã€ã³ã¹ããŒã«ããã»ã¹ãå®äºããŸãã |
6. | $ brew --version Homebrew 3.6.7 Homebrew/homebrew-core (git revision 4917c76d4d2; last commit 2022-10-29) |
- ã¹ããã6ã®åºåçµæã¯ãã€ã³ã¹ããŒã«ãããHomebrewã®ããŒãžã§ã³ã瀺ããŠããŸãã
ããã§Homebrewãã€ã³ã¹ããŒã«ã§ããã®ã§ã次ã«Gitãã€ã³ã¹ããŒã«ããŸãããã®ããã«ã¯ãbrew install git
ã³ãã³ãã䜿ããŸããã€ã³ã¹ããŒã«ãçµãã£ãããgit version
ã³ãã³ãã䜿ã£ãŠãã€ã³ã¹ããŒã«ãããGitã®ããŒãžã§ã³ããã§ãã¯ããŸããå®è¡æé D-3ã«åŸã£ãŠãããããå®è¡ããŠãã ããã
ã | å®è¡æé D-3 |
---|---|
1. | $ brew install git |
2. | $ git version git version 2.38.1 |
ããã§ãmacOSçšã®Gitã®ã€ã³ã¹ããŒã«ãå®äºããŸããã
æ¬æžã®6ç« ã§ã¯ããã¹ãã£ã³ã°ãµãŒãã¹ãéžæããHTTPSãŸãã¯SSHãããã³ã«ãä»ããŠãªã¢ãŒããªããžããªãŒã«æ¥ç¶ããããã®èªèšŒæ å ±ãã»ããã¢ããããããæ瀺ãããŠããŸãããã¹ãã£ã³ã°ãµãŒãã¹ãšããŠGitHubã䜿çšããŠããŠãHTTPSãããã³ã«ã䜿çšããããšã«æ±ºããå Žåã¯ãå人çšã¢ã¯ã»ã¹ããŒã¯ã³ãäœæããå¿ èŠããããŸãã
GitHubã§å人çšã¢ã¯ã»ã¹ããŒã¯ã³ãäœæããæ¹æ³ã«ã€ããŠã¯ãGitHub Docs - Creating a personal access tokenïŒhttps://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classicïŒã§åç §ã§ããŸãã
蚳泚ïŒæ¥æ¬èªçããŒãžïŒhttps://docs.github.com/ja/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#personal-access-token-classic-%E3%81%AE%E4%BD%9C%E6%88%90ïŒ
ã | èš³è è£ïŒå人çšã¢ã¯ã»ã¹ããŒã¯ã³ã®äœæ |
---|---|
ã | å人çšã¢ã¯ã»ã¹ããŒã¯ã³ãäœæããããã®æé ãç°¡åã«èª¬æããŸãã |
1. | ã¡ãŒã«ã¢ãã¬ã¹ã®æ€èšŒãçµãã£ãŠããªãå Žåã¯ããŸãã¡ãŒã«ã¢ãã¬ã¹ãæ€èšŒããŸããã¡ãŒã«ã¢ãã¬ã¹ã®æ€èšŒãå®äºããŠããªããšãå人çšã¢ã¯ã»ã¹ããŒã¯ã³ã¯äœæã§ããŸããã詳ããã¯ãGitHub Docsã®ããŒãžïŒhttps://docs.github.com/jaïŒã§ãã¡ãŒã«ã¢ãã¬ã¹ãæ€èšŒããããšæ€çŽ¢ããŠãã ããã |
2. | GitHubã§ãä»»æã®ããŒãžã®å³äžé ã«ããèªåã®ãããã£ãŒã«åçãã¯ãªãã¯ããSettingsãã¯ãªãã¯ããŸãã |
3. | å·ŠåŽã®ãµã€ãããŒã§ãDeveloper settingsãã¯ãªãã¯ããŸãã |
4. | å·ŠåŽã®ãµã€ãããŒã§ãPersonal access tokensã®äžã«ããTokens (classic)ãã¯ãªãã¯ããŸãã |
5. | Generate new tokenãã¯ãªãã¯ããGenerate new token (classic)ãã¯ãªãã¯ããŸãã |
6. | Noteãã£ãŒã«ãã§ãããŒã¯ã³ã«ããããããååãä»ããŸãã |
7. | Expirationã§ãããŒã¯ã³ã®æå¹æéãèšå®ããŸããæ¢å®ã®éžæè¢ã®äžããéžæããããCustom...ãéžæããŠæ¥ä»ãå ¥åããŸãã |
8. | Select scopesã§ããã®ããŒã¯ã³ã«ä»äžããã¹ã³ãŒããéžæããŸããããŒã¯ã³ã䜿ã£ãŠã³ãã³ãã©ã€ã³ãããªããžããªãŒã«ã¢ã¯ã»ã¹ããã«ã¯ãrepo ïŒãªããžããªãŒïŒãéžæããŸããã¹ã³ãŒããå²ãåœãŠãããŠããªãããŒã¯ã³ã§ã¯ãå
¬éãããŠããæ
å ±ã«ã®ã¿ã¢ã¯ã»ã¹ã§ããŸãã |
9. | Generate tokenãã¯ãªãã¯ããŸãã |
10. | çæãããããŒã¯ã³ãã³ããŒããŠä¿åããŸãã |
GitHubã§å人çšã¢ã¯ã»ã¹ããŒã¯ã³ãäœæããå Žåã¯ã次ã®ããšã«æ³šæããŠãã ããã
- Noteãã£ãŒã«ãã¯ãå人çšã¢ã¯ã»ã¹ããŒã¯ã³ã®ååãè¡šããŸãã
- Expirationã§æå¹æéãéžæãããšãã«ã¯ãæäœã§ããæ¬æžãèªãã§ç·Žç¿èª²é¡ãããçµããããã«å¿ èŠãªæéãèšå®ããããšãå§ããŸããããã§ãªããšãæ¬æžãèªãã§ããéäžã§å人çšã¢ã¯ã»ã¹ããŒã¯ã³ãæéåãã«ãªããæ°ããããŒã¯ã³ãäœæããããã®ããã»ã¹ãå®è¡ããªããã°ãªããªããªããŸãã
- ã¹ã³ãŒãïŒscopeïŒã¯ããã®ããŒã¯ã³ã§äœãè¡ããããããªãã¡äœãèªèšŒãããããå®çŸ©ããŸããæ¬æžã®ç®çã®ããã«ã¯ãå°ãªããšã
repo
ïŒãªããžããªãŒïŒã¹ã³ãŒããéžæããå¿ èŠããããŸãã - å人çšã¢ã¯ã»ã¹ããŒã¯ã³ã¯å®å šãªå Žæã«ä¿åããŠãã ããã
ð¡ãå人çšã¢ã¯ã»ã¹ããŒã¯ã³ã¯ãã»ãã¥ãªãã£äžã®çç±ãããäœææã«äžåºŠãã衚瀺ãããŸããããã®ãããå®å šãªå Žæã«ä¿åããŠããå¿ èŠããããŸãã
æ¬æžã®6ç« ã§ã¯ããã¹ãã£ã³ã°ãµãŒãã¹ãéžæããHTTPSãŸãã¯SSHãããã³ã«ãä»ããŠãªã¢ãŒããªããžããªãŒã«æ¥ç¶ããããã®èªèšŒæ å ±ãã»ããã¢ããããããæ瀺ãããŠããŸãããã¹ãã£ã³ã°ãµãŒãã¹ãšããŠBitbucketã䜿çšããŠããŠãHTTPSãããã³ã«ã䜿çšããããšã«æ±ºããå Žåã¯ãã¢ããªãã¹ã¯ãŒããäœæããå¿ èŠããããŸãã
Bitbucketã§ã¢ããªãã¹ã¯ãŒããäœæããæ¹æ³ã«ã€ããŠã¯ãBitbucket Support - Create an App passwordïŒhttps://support.atlassian.com/bitbucket-cloud/docs/create-an-app-password/ïŒã§åç §ã§ããŸãã
蚳泚ïŒæ¥æ¬èªçããŒãžïŒhttps://support.atlassian.com/ja/bitbucket-cloud/docs/create-an-app-password/ïŒ
Bitbucketã§ã¢ããªãã¹ã¯ãŒããäœæããå Žåã¯ã次ã®ããšã«æ³šæããŠãã ããã
- Labelãã£ãŒã«ãã¯ãã¢ããªãã¹ã¯ãŒãã®ååãè¡šããŸãã
- æš©éïŒpermissionïŒã¯ããã®ã¢ããªãã¹ã¯ãŒãã§äœãèªèšŒãããããè¡šããŸããæ¬æžã®ç®çã®ããã«ã¯ãå°ãªããšããã¢ã«ãŠã³ãïŒAccountïŒãWorkspace membershipããããžã§ã¯ãïŒProjectsïŒããªããžããªãŒïŒRepositoriesïŒããã«ãªã¯ãšã¹ãïŒPull RequestsïŒã®åã»ã¯ã·ã§ã³ã®ãªãã·ã§ã³ãéžæããå¿ èŠããããŸãã
- ã¢ããªãã¹ã¯ãŒãã¯å®å šãªå Žæã«ä¿åããŠãã ããã
ð¡ãã¢ããªãã¹ã¯ãŒãã¯ãã»ãã¥ãªãã£äžã®çç±ãããäœææã«äžåºŠãã衚瀺ãããŸããããã®ãããå®å šãªå Žæã«ä¿åããŠããå¿ èŠããããŸãã
æ¬æžã®6ç« ã§ã¯ããã¹ãã£ã³ã°ãµãŒãã¹ãéžæããHTTPSãŸãã¯SSHãããã³ã«ãä»ããŠãªã¢ãŒããªããžããªãŒã«æ¥ç¶ããããã®èªèšŒæ å ±ãã»ããã¢ããããããæ瀺ãããŠããŸããSSHãããã³ã«ã䜿çšããããšã«æ±ºããå Žåã¯ãããããã®ãã¹ãã£ã³ã°ãµãŒãã¹ã§ã®ã»ããã¢ããæ¹æ³ãæžããã次ã®ãªã³ã¯ãåç §ããŠãã ããã
- GitHub Docs - Connecting to GitHub with SSHïŒhttps://docs.github.com/en/authentication/connecting-to-github-with-sshïŒ
蚳泚ïŒæ¥æ¬èªçããŒãžïŒhttps://docs.github.com/ja/authentication/connecting-to-github-with-sshïŒ
- GitLab Docs - Use SSH keys to communicate with GitLabïŒhttps://docs.gitlab.com/ee/user/ssh.htmlïŒ
蚳泚ïŒã¯ãªãšãŒã·ã§ã³ã©ã€ã³æ ªåŒäŒç€Ÿã«ããæ¥æ¬èªçããŒãžïŒhttps://gitlab-docs.creationline.com/ee/user/ssh.htmlïŒ
- Bitbucket Support - Set up an SSH keyïŒhttps://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/ïŒ
蚳泚ïŒæ¥æ¬èªçããŒãžïŒhttps://support.atlassian.com/ja/bitbucket-cloud/docs/configure-ssh-and-two-step-verification/ïŒ
ããã§ã¯ãSSHã®äžè¬çãªã»ããã¢ããã®äŸã瀺ããŸããããŸããããªãå Žåããäžè¬çãªäŸãåœãŠã¯ãŸããªãå Žåã¯ããã¹ãã£ã³ã°ãµãŒãã¹ã®å ¬åŒããã¥ã¡ã³ããåç §ããããšãå§ããŸãã
SSHã¢ã¯ã»ã¹ãã»ããã¢ããããããã®äž»èŠãªã¹ãããã¯ã次ã®3ã€ã§ãã
- èªåã®ã³ã³ãã¥ãŒã¿ãŒäžã§SSHéµã®ãã¢ãäœæããã
- SSHã®ç§å¯éµãSSHãšãŒãžã§ã³ãã«è¿œå ããã
- SSHã®å ¬ééµããã¹ãã£ã³ã°ãµãŒãã¹ã®ã¢ã«ãŠã³ãã«è¿œå ããã
SSHéµã«ã¯ããŸããŸãªçš®é¡ãããããã®ãã¡ã®ããã€ãã¯ä»ã®ãã®ããå®å šã§ãããšèããããŠããŸããããããã®ãã¹ãã£ã³ã°ãµãŒãã¹ã¯ãã©ã®çš®é¡ã®SSHéµãåãå ¥ããããææžã§ç€ºããŠããŸãã
æ¬æžã®å·çæç¹ã§ã3ã€ã®äž»èŠãªãã¹ãã£ã³ã°ãµãŒãã¹ã§åãå
¥ããããŠããŠãæãå®å
šãšèããããŠããSSHéµã®çš®é¡ã¯ãed25519
ã§ããããã§ç€ºãã»ããã¢ããã®äŸã§ããããã䜿ããŸãããã ãã䜿çšããŠãããã¹ãã£ã³ã°ãµãŒãã¹ã§åãå
¥ããããŠãããã®ã§ããã°ãã©ã®çš®é¡ã®éµã§ãå©çšã§ããŸãã
SSHéµã®ãã¢ãäœæããã«ã¯ãssh-keygen -t <ssh-key-type> -C "<email>"
ã³ãã³ãã䜿ããŸãã-t
ãªãã·ã§ã³ã¯ãtypeããè¡šããSSHéµã®çš®é¡ãæå®ããŸãã-C
ãªãã·ã§ã³ã¯ã©ãã«ãè¡šããŸããããã§ã¯ã©ãã«ãšããŠããã¹ãã£ã³ã°ãµãŒãã¹ã®ã¢ã«ãŠã³ãã§äœ¿çšããŠããEã¡ãŒã«ã¢ãã¬ã¹ã䜿ããŸãã
ãã®ã³ãã³ããå®è¡ãããšãã©ãã«éµãä¿åããããå°ããããŸããããã©ã«ãã®èšå®ã«åŸãããšãå§ããŸããããã©ã«ãã§ã¯ãèªè
ã®ããŒã ãã£ã¬ã¯ããªãŒã®äžã«ã.ssh
ãšããé ããã£ã¬ã¯ããªãŒãäœæãããŸããé ããã£ã¬ã¯ããªãŒãšé ããã¡ã€ã«ãããã³ãããã®è¡šç€ºæ¹æ³ã«ã€ããŠã¯ã1ç« ã§åŠç¿ããããšãæãåºããŠãã ããã
ð¡ããããŸã§ã«èªåã®ã³ã³ãã¥ãŒã¿ãŒã§SSHãã»ããã¢ããããããšããããã©ããå®ãã§ãªãå Žåã¯ãããŒã ãã£ã¬ã¯ããªãŒã«ç§»åãã
.ssh
ãšããé ããã£ã¬ã¯ããªãŒãååšãããã©ãããã§ãã¯ããŠãã ããã
é ããã£ã¬ã¯ããªãŒã®.ssh
ã®äžã«ã¯ã2ã€ã®ãã¡ã€ã«ãäœæãããŸãã1ã€ã¯SSHã®ç§å¯éµã®ãã¡ã€ã«ã§ãããæ¬æžã®äŸã§ã¯id_ed25519
ã§ãããã1ã€ã¯SSHã®å
¬ééµã®ãã¡ã€ã«ã§ãããæ¬æžã®äŸã§ã¯id_ed25519.pub
ã§ãã
次ã®å³ã¯ãäœæããã.ssh
ãã£ã¬ã¯ããªãŒãšãã¡ã€ã«ã®äŸã瀺ããŠããŸãã
éµãä¿åããå Žæãæå®ãããã次ã«ããã¹ãã¬ãŒãºïŒããªãã¡ãã¹ã¯ãŒãïŒãå ¥åããããæ±ããããŸãããã¹ãã¬ãŒãºã¯çç¥å¯èœã§ãããã»ãã¥ãªãã£äžã®çç±ããã䜿çšããããšã匷ãæšå¥šããŸãã
å®è¡æé D-4ã«é²ã¿ãSSHãã»ããã¢ããããããã®ã¹ããã1ïŒSSHéµã®ãã¢ã®äœæïŒãå®äºããŠãã ããã
ã | å®è¡æé D-4 |
---|---|
1. | $ ssh-keygen -t ed25519 -C "[email protected]"} Generating public/private ed25519 key pair. ã Enter file in which to save the key (/Users/annaskoulikari/.ssh/id_ed25519): |
2. | ããã©ã«ãã®å Žæã«éµãä¿åããããã«ããã®ãŸãŸïŒ»EnterããŒãæŒããŸããæ¬æžã®äŸã§ã¯ã/Users/annaskoulikari/.ssh/id_ed25519 ãšãããã¡ã€ã«ã«ä¿åãããŸããCreated directory '/Users/annaskoulikari/.ssh'. ã Enter passphrase (empty for no passphrase): |
3. | SSHéµã®ãã¹ãã¬ãŒãºïŒããªãã¡ãã¹ã¯ãŒãïŒãå
¥åããŸããEnter same passphrase again: |
4. | 確èªã®ããã«ãåããã¹ãã¬ãŒãºãããäžåºŠå
¥åããŸããYour identification has been saved in /Users/annaskoulikari/.ssh/id_ed25519 ã Your public key has been saved in /Users/annaskoulikari/.ssh/id_ed25519.pub ã The key fingerprint is: SHA256:2ye4Q/S10thZsBM6PZgdLkTJbWCmMygMCXoB8j6gvno [email protected] |
5. | ããŒã ãã£ã¬ã¯ããªãŒã«ç§»åããé ããã£ã¬ã¯ããªãŒãšé ããã¡ã€ã«ã衚瀺ããããã«èšå®ãå€æŽãïŒãŸãã¯ãã®ããã«ãªã£ãŠããããšã確èªãïŒã.ssh ãã£ã¬ã¯ããªãŒã®å
容ã確èªããŸãã |
ããã§SSHéµã®ãã¢ãäœæã§ããã®ã§ãã¹ããã2ã«é²ã¿ãSSHã®ç§å¯éµãSSHãšãŒãžã§ã³ãã«è¿œå ããŸãã
ã¹ããã1ã§SSHéµã®ãã¢ãäœæãããšãã«ããã¹ãã¬ãŒãºãå ¥åããŸãããéåžžã¯ãSSHã䜿ã£ãŠãªã¢ãŒããªããžããªãŒã«æ¥ç¶ãããã³ã«ããã¹ãã¬ãŒãºãå ¥åããå¿ èŠããããŸãã
SSHã®ç§å¯éµãSSHãšãŒãžã§ã³ãã«è¿œå ãããšããããåé¿ã§ããŸããSSHãšãŒãžã§ã³ãã¯ãèªè ã®ä»£ããã«SSHéµã管çãããã¹ãã¬ãŒãºãèšæ¶ããŸãã
SSHãšãŒãžã§ã³ããžã®ç§å¯éµã®è¿œå ã¯ã2ã€ã®éšåããæããŸãã
ãŸããeval "$(ssh-agent -s)"
ã³ãã³ãã䜿ã£ãŠãSSHãšãŒãžã§ã³ããããã¯ã°ã©ãŠã³ãã§èµ·åããŸãã
次ã«ãssh-add
ã³ãã³ãã䜿ããSSHç§å¯éµãã¡ã€ã«ã®ãã¹ãæž¡ãããšã§ãç§å¯éµãSSHãšãŒãžã§ã³ãã«è¿œå ããŸãããããã£ãŠãå®è¡ããã³ãã³ãã¯ãssh-add ~/.ssh/<ssh_private_key_file_name>
ã«ãªããŸãã1ç« ã§èª¬æããããã«ããã«ãèšå·ïŒ~
ïŒã¯ããŒã ãã£ã¬ã¯ããªãŒãè¡šããŸãã
å®è¡æé D-5ã«é²ã¿ãSSHã®ç§å¯éµãSSHãšãŒãžã§ã³ãã«è¿œå ããŸãã
ã | å®è¡æé D-5 |
---|---|
1. | $ eval "$(ssh-agent -s)" Agent pid 26054 |
2. | $ ssh-add ~/.ssh/id_ed25519 Enter passphrase for /Users/annaskoulikari/.ssh/id_ed25519: |
3. | SSHéµã®äœææã«å
¥åãããã¹ãã¬ãŒãºãå
¥åããŸããIdentity added: /Users/annaskoulikari/.ssh/id_ed25519 ([email protected]) |
ããã§ãSSHã¢ã¯ã»ã¹ãã»ããã¢ããããããã®ã¹ããã2ãå®äºããã®ã§ãæåŸã®ã¹ããã3ã«é²ãããšãã§ããŸãã
ã¹ããã1ã§ãããŒã ãã£ã¬ã¯ããªãŒã®äžã«.ssh
ãšããé ããã£ã¬ã¯ããªãŒãäœæããããã®äžã«2ã€ã®ãã¡ã€ã«ãå«ãŸããŠããããšã確èªããŸããã1ã€ã¯SSHã®ç§å¯éµã®ãã¡ã€ã«ã§ããããã1ã€ã¯SSHã®å
¬ééµã®ãã¡ã€ã«ã§ãã
ãã®ã¹ãããã§ã¯ãå ¬ééµã®ãã¡ã€ã«ã®å 容ãã³ããŒããããããã¹ãã£ã³ã°ãµãŒãã¹ã®èªåã®ã¢ã«ãŠã³ãã«è¿œå ããŸãã
å
¬ééµã®ãã¡ã€ã«ã®å
容ãã³ããŒããã«ã¯ãã³ãã³ãã©ã€ã³ã䜿çšãããããŸãã¯ãã¡ã€ã«ã·ã¹ãã å
ã®ãã¡ã€ã«ã«çŽæ¥ã¢ã¯ã»ã¹ããããã¹ããšãã£ã¿ãŒã䜿ã£ãŠãã¡ã€ã«ãéããŸããæ¬æžã®äŸã§ã¯ããã¡ã€ã«åã¯id_25519.pub
ã§ãã
次ã«ããã¹ãã£ã³ã°ãµãŒãã¹ã®ããã¥ã¡ã³ãã®æ瀺ã«åŸã£ãŠããã¹ãã£ã³ã°ãµãŒãã¹ã®ã¢ã«ãŠã³ãã«å ¬ééµãè¿œå ããŸãã
å®è¡æé D-6ã«é²ã¿ãSSHã®ã»ããã¢ããããã»ã¹ã®ã¹ããã3ãå®äºããŠãã ããã
ã | å®è¡æé D-6 |
---|---|
1. | SSHã®å ¬ééµã®å 容ãã³ããŒããŸãããããè¡ãã«ã¯ããã¡ã€ã«ã·ã¹ãã å ã§ãã¡ã€ã«ãæ¢ããããã¹ããšãã£ã¿ãŒã䜿ã£ãŠãããéãããã®å 容ãã³ããŒããŸãããŸãã¯ãã³ãã³ãã©ã€ã³ã§ã³ãã³ãã䜿ã£ãŠãå ¬ééµãã¡ã€ã«ã®å 容ãã³ããŒããŸãã |
2. | ãã¹ãã£ã³ã°ãµãŒãã¹ã®ããã¥ã¡ã³ãã®æé ã«åŸã£ãŠãSSHã®å ¬ééµããã¹ãã£ã³ã°ãµãŒãã¹ã®ã¢ã«ãŠã³ãã«ä¿åããŸãã |
ããã§ãSSHãä»ããŠæ¥ç¶ããããã®èªèšŒæ å ±ã®ã»ããã¢ãããå®äºããŸããã
æ¬æžã®7ç« ã§ã¯ããªã¢ãŒããªããžããªãŒãäœæããããæ瀺ãããŠããŸããããããã®ãã¹ãã£ã³ã°ãµãŒãã¹ã§ãããè¡ãããã®æ¹æ³ã«ã€ããŠã¯ã次ã®ãªã³ã¯ãåç §ããŠãã ããã
- GitHub Docs - Create a repositoryïŒhttps://docs.github.com/en/get-started/quickstart/create-a-repoïŒ
蚳泚ïŒæ¥æ¬èªçããŒãžïŒhttps://docs.github.com/ja/repositories/creating-and-managing-repositories/quickstart-for-repositoriesïŒ
- GitLab Docs - Create a blank projectïŒhttps://docs.gitlab.com/ee/user/project/#create-a-blank-projectïŒ
è£æ³šïŒ GitLabã§ã¯ããªããžããªãŒã¯ããããžã§ã¯ããïŒprojectïŒãšåŒã°ããŸãã
蚳泚ïŒã¯ãªãšãŒã·ã§ã³ã©ã€ã³æ ªåŒäŒç€Ÿã«ããæ¥æ¬èªçããŒãžïŒhttps://gitlab-docs.creationline.com/ee/user/project/#create-a-blank-projectïŒ
- Bitbucket Support - Create a repositoryïŒhttps://support.atlassian.com/bitbucket-cloud/docs/create-a-repository/ïŒ
蚳泚ïŒæ¥æ¬èªçããŒãžïŒhttps://support.atlassian.com/ja/bitbucket-cloud/docs/create-a-repository/ïŒ
- Bitbucket Support - Create a repository in Bitbucket CloudïŒhttps://support.atlassian.com/bitbucket-cloud/docs/create-a-repository-in-bitbucket-cloud/ïŒ
蚳泚ïŒæ¥æ¬èªçããŒãžïŒhttps://support.atlassian.com/ja/bitbucket-cloud/docs/create-a-repository-in-bitbucket-cloud/ïŒ
ã | èš³è è£ïŒGitHubã§ã®ãªã¢ãŒããªããžããªãŒã®äœæ |
---|---|
ã | GitHubã§ãªã¢ãŒããªããžããªãŒãäœæããããã®æé ãç°¡åã«èª¬æããŸããäžèšã®æé ã¯ãæ¬æžã®ç·Žç¿èª²é¡ã®ããã«ãªããžããªãŒãäœæããå Žåã®ãã®ã§ãã |
1. | GitHubã®ä»»æã®ããŒãžã§ãå³äžã«ãããã©ã¹èšå·ïŒïŒ ïŒãã¯ãªãã¯ããNew repositoryãã¯ãªãã¯ããŸãã |
2. | Repository nameã®ãã£ãŒã«ãã«ãäœæãããªããžããªãŒã®ååïŒrainbow-remote ïŒãå
¥åããŸãã |
3. | Descriptionã®ãã£ãŒã«ãã«ããªããžããªãŒã®èª¬æãå ¥åããŸããããã¯çç¥å¯èœã§ãã |
4. | ãªããžããªãŒãéå
¬éã«ããããã«ãPrivate ãéžæããŸãã |
5. | Add a README fileã«ã¯ããã§ãã¯ã¯ä»ããŸããã |
6. | Add .gitignoreã¯ããNoneãã®ãŸãŸã«ããŠãããŸãã |
7. | Choose a licenseã¯ããNoneãã®ãŸãŸã«ããŠãããŸãã |
8. | Create repositoryãã¯ãªãã¯ããŸãã |
æ¬æžã®12ç« ã§ã¯ãrainbow-remote
ãªããžããªãŒã§ãã«ãªã¯ãšã¹ããäœæããããæ瀺ãããŠããŸããããããã®ãã¹ãã£ã³ã°ãµãŒãã¹ã§ãããè¡ãããã®æ¹æ³ã«ã€ããŠã¯ã次ã®ãªã³ã¯ãåç
§ããŠãã ããã
- GitHub Docs - Creating a pull requestïŒhttps://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request?tool=webui#creating-the-pull-requestïŒ
蚳泚ïŒæ¥æ¬èªçããŒãžïŒhttps://docs.github.com/ja/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request?tool=webui#creating-the-pull-requestïŒ
- GitLab Docs - Creating merge requestsïŒhttps://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.htmlïŒ
è£æ³šïŒãFrom the merge request listãã»ã¯ã·ã§ã³ïŒæ¥æ¬èªçããŒãžã§ã¯ãããŒãžãªã¯ãšã¹ãäžèŠ§ãããã»ã¯ã·ã§ã³ïŒã®æ瀺ã«åŸãããšãå§ããŸãã
蚳泚ïŒã¯ãªãšãŒã·ã§ã³ã©ã€ã³æ ªåŒäŒç€Ÿã«ããæ¥æ¬èªçããŒãžïŒhttps://gitlab-docs.creationline.com/ee/user/project/merge_requests/creating_merge_requests.htmlïŒ
- Bitbucket Support - Create a pull requestïŒhttps://support.atlassian.com/bitbucket-cloud/docs/create-a-pull-request/#Create-a-pull-requestïŒ
蚳泚ïŒæ¥æ¬èªçããŒãžïŒhttps://support.atlassian.com/ja/bitbucket-cloud/docs/create-a-pull-request/#Create-a-pull-requestïŒ