GitHubはインターネット上に存在し、Microsoft社が保有するGitサーバーです。エンジニアの間では広く使用され一般的なものとなっています。
GitHubはアカウントを登録するだけで無料で利用することができます。
![GitHubの説明](http://tech-popeye.com/wp-content/uploads/2021/10/github_summary_compressed-1024x431.png)
GitHubアカウントの作成
GitHubの公式サイトにアクセスし、GitHubのアカウントを作成します。
ご自身のGmailなどのメールアドレスを入力し、「Sign up for GitHub」を選択します。
![GitHub](http://tech-popeye.com/wp-content/uploads/2021/10/github_1_compressed-1024x820.png)
以下の通りに進めます。
![GitHub](http://tech-popeye.com/wp-content/uploads/2021/10/github_2_compressed-1-1024x443.png)
![GitHub](http://tech-popeye.com/wp-content/uploads/2021/10/github_3_compressed-1024x559.png)
![GitHub](http://tech-popeye.com/wp-content/uploads/2021/10/github_4_compressed-1024x552.png)
![GitHub](http://tech-popeye.com/wp-content/uploads/2021/10/github_5_compressed-1024x684.png)
![GitHub](http://tech-popeye.com/wp-content/uploads/2021/10/github_6_compressed-1024x638.png)
![GitHub](http://tech-popeye.com/wp-content/uploads/2021/10/github_7_compressed-1024x667.png)
![](http://tech-popeye.com/wp-content/uploads/2021/10/github_8_compressed-1024x663.png)
入力したメールアドレスにメールが届くので、「Verification code」を控えます。
![](http://tech-popeye.com/wp-content/uploads/2021/10/github_10_compressed-1024x828.png)
GitHubで「Verification code」を入力すれば、アカウントが作成されます。
![GitHub](http://tech-popeye.com/wp-content/uploads/2021/10/github_9_compressed-1024x487.png)
アカウントが作成できたら、サインインします。
![GitHub](http://tech-popeye.com/wp-content/uploads/2021/10/github_11_compressed-1024x823.png)
![GitHub](http://tech-popeye.com/wp-content/uploads/2021/10/github_12_compressed-1024x566.png)
![GitHub](http://tech-popeye.com/wp-content/uploads/2021/10/github_13_compressed-1024x669.png)
これで、GitHubにサインインできるようになりました。
リモートリポジトリの作成
GitHub上に、リモートリポジトリを作成します。
![GitHub](http://tech-popeye.com/wp-content/uploads/2021/10/github_14_compressed-1024x669.png)
![GitHub](http://tech-popeye.com/wp-content/uploads/2021/10/github_15_compressed-1024x823.png)
これで、リモートリポジトリを作成することができました。
ローカル環境からアクセスするために、リモートリポジトリのURLを控えておきます。
![GitHub](http://tech-popeye.com/wp-content/uploads/2021/10/github_16_compressed-1024x740.png)
アクセストークンの取得
ローカル環境からリモートリポジトリへアクセスするには、認証情報としてアクセストークンが必要です(ユーザーIDやパスワードのようなものと考えて下さい)。
![GitHub](http://tech-popeye.com/wp-content/uploads/2021/10/github_17_compressed-1024x733.png)
![GitHub](http://tech-popeye.com/wp-content/uploads/2021/10/github_18_compressed-1024x907.png)
![GitHub](http://tech-popeye.com/wp-content/uploads/2021/10/github_19_compressed-1024x386.png)
![GitHub](http://tech-popeye.com/wp-content/uploads/2021/10/github_20_compressed-1024x396.png)
![GitHub](http://tech-popeye.com/wp-content/uploads/2021/10/github_21_compressed-1024x895.png)
![GitHub](http://tech-popeye.com/wp-content/uploads/2021/10/github_22_compressed-1024x579.png)
以後、ローカル環境からこの「URL」と「アクセストークン」を指定して、リモートリポジトリへアクセスします。
本節の説明は以上になります。
トップページ << [Windows] [Mac] 前のカリキュラムへ戻る 次のカリキュラムへ進む>>