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?

More than 3 years have passed since last update.

githubにアクセストークンで接続

Posted at

2021年にgit hubへ接続するのに、password認証ではなくアクセストークンで認証をしなければ行けなくなりました。

セキュリティ強固のためでしょうかね。
多分いろんな人が記事にしているので簡単に。

githubの個人ページから、developper settingにてパーソナルアクセストークンを選択。
その後、トークン発行する。

To give your token an expiration, select the Expiration drop-down menu, then click a default or use the calendar picker.

トークンが有効な期限を決めます。7日や30日とか設定できます。

$ git clone https://github.com/username/repo.git
Username: your_username
Password: your_token

Usernameとpasswordを聞かれる際に、passwordはアクセストークンを入力する。
すると、cloneだったりが可能になります。

参考:
https://docs.github.com/ja/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token 日本語
https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token 英語

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?