この記事では、GitHubにgit pushやgit pullするときに認証が聞かれるので、その対応方法を記載したいと思います。

公式サイトに詳細が掲載されています。

GitHub認証 - 概要

種類

  • トークン(パスワード認証のような認証)
  • SSH鍵認証

種類として以上の方法があるようです。

 

Githubでアクセストークンを使う - GitHub - [SMART]

GitHubがパスワード認証を廃止するらしいので - Qiita

SSHを利用する場合 - Ubuntu

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

cli/install_linux.md at trunk · cli/cli

参考HP

[Github]git push origin master後、password入力後エラー(Authentication failed for~) - Qiita

 

おすすめの記事