1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Windows11でGithubを使えるまでの設定

1
Posted at

WindowsPCでGithubへ設定登録手順

PS C:\Users\User\.ssh> ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (C:\Users\User/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in C:\Users\User/.ssh/id_rsa
Your public key has been saved in C:\Users\User/.ssh/id_rsa.pub
The key fingerprint is:
SHA256:U18lQTp3pUhgMFRw8htc3uso0qdHEh85YpFUKSx1828 user@DESKTOP-4LQPQOQ
The key's randomart image is:
+---[RSA 3072]----+
|       .*BB+*o+.o|
|        .B==.* +.|
|         .=o=.* .|
|         .++++ + |
|        S..+.o. E|
|         o. oo . |
|        . ooo .  |
|         . +.    |
|          ..     |
+----[SHA256]-----+

メモ帳でC:\Users\User/.ssh/id_rsa.pubを開き全文コピー
自分のGithubへログイン
GitHub Settings → SSH and GPG keys → New SSH key → 貼り付け → 保存。
下記実行

PS C:\Users\User\.ssh> ssh -T git@github.com
Hi shinsaku-jazzbass! You've successfully authenticated, but GitHub does not provide shell access.

上記メッセージで接続テスト。
GithubにてCreate a new repositoryを実行。
開発フォルダー移動して下記メッセージを実行

echo "# test" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:shinsaku-jazzbass/test.git
git push -u origin main

下記メッセージ出たらEMailと実際の名前を登録
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
各コマンド実行後、Githubへアップロードされる。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?