LoginSignup
0
1

More than 1 year has passed since last update.

GitHubへのPushができない?

Posted at

GitHubへのPushが出来なくなった。
訳も分からず調べていたらなんとなく解決できたのでまとめてみる。

やりたいこと

コマンドからGitHubへのPushを行いたい。

エラー内容

remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: Authentication failed for 'https://github.com/taiki003838/markdown-editor.git/'

調査

ご丁寧にエラー文にリンクが貼られていたので飛んでみると

今まではローカルでGitHubにアクセスするにパスワード認証を使用しておりましたが、脆弱性防止のために個人アクセストークン認証に変更になったそうです。(2021年8月13日にパスワード認証が廃止されます)

スクリーンショット 2021-07-28 23.02.14 (1).png

こういう風に変わったみたいですね。ふむふむ

*解決策

GitHubで個人アクセストークンを生成する方法する。
↓こちらにGitHubで個人アクセストークンを生成するまでの手順が記載されています。
https://docs.github.com/ja/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token

参考

無事解決できてよかった~:relaxed:

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