mac default dir/gitfld/% git push -u origin main
Username for 'https://github.com': username入力
Password for 'https://username@github.com':password入力
以下のエラー発生!!
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/shinsaku-jazzbass/youtube-git2.git/'
githubサイトにてsettingよりDeveloper Settings→Personal access token→Token(classic)選択し
Genarate new tokenにて生成し、tokenをコピーし再度ターミナルにてpushしてpasswordにtokenをペースト。
pushされます。