4
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?

More than 3 years have passed since last update.

githubの個人アクセストークンを使用する

Last updated at Posted at 2021-10-01

※n番煎じですみませんが、自分用メモ

2021/8/13より、Githubへ認証が必要なgit操作をする場合は、
Passwordによる認証からアクセストークンを使用した認証に変わった。

Token authentication requirements for Git operations

個人アクセストークンの使い方は、基本的には以下の公式サイトを参照するだけでよい。

個人アクセストークンを使用する

コマンドラインからアクセストークンを使う場合は、記載通り以下の通りにすればよい。

コマンドラインでトークンを使用する
トークンを入手したなら、HTTPS経由でGitの操作をする際にパスワードの代わりにそのトークンを入力できます。

たとえば、コマンドラインでは以下のように入力できます。

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

4
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
4
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?