投稿

11月, 2021の投稿を表示しています

github@パスワード認証でpushできなくなった

github@パスワード認証でpushできなくなった はじめに 最近、漸くコードをイジれて、久しぶりにgithubにpushしようとしたのだが、 $ git push origin develop Username for 'https://github.com': MasterMochi Password for 'https://MasterMochi@github.com': 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/MasterMochi/mvfs.git/' あれ、pushできな~い。なになに・・・ パスワード認証のサポートは2021年8月13日に削除されました~。 代わりにパーソナルアクセストークンを使ってくれ~ そういえば、以前pushした時にそんな警告が出ていた気がする。承認方法変わったのか。 8月ってダイブ前だな・・・ 誘導されたページを見てみる https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ 前置きはすっ飛ばして、"What you need to today"をテキトーに読むと、 今日すべきこと 開発者さんのために、もしGitHub.comでGit操作を承認するためにパスワード使ってんなら、HTTPS (推奨)かSSH鍵を介した パーソナルアクセストークン を使わなきゃダメよ。 うん、で?と思ったら、「パーソナルアクセストークン」