0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

WSL上からgithubを使う方法

0
Posted at

概要

WSL上で動かしているubuntuから、githubを利用する方法をまとめていきます。

手順

1.

初期設定を行うために、ユーザーネームとメールアドレスを登録します。

git config --global user.name "Your Name"
git config --global user.email "you@example.com"

2.

ghコマンドを使えるようにするため、インストールします。

sudo apt -y update
sudo apt -y install gh

3.

githubにログインする

gh auth login

4.

質問されるので以下順番で回答する

GitHub.com
HTTPS
Yes
Login With a web browser

この順番で回答すると、

! First copy your one-time code: [コード番号]

上記のように表示されるので、ブラウザを立ち上げコードを入力すると使えるようになる
開くURLは以下
https://github.com/login/device

まとめ

久しぶりに記事を作成しました。
これからぼちぼち更新していこうと思いますので、よろしくお願いいたします。
今回は以下記事を参考に自分で行ってみたものを記事にしました。

参考元
https://zenn.dev/sassan/articles/a1efb40422f2d7

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?