FAQ
[GitHub] 無法 git push
錯誤訊息
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: 'https://github.com/a-lang/benchy.git/' 身份驗證失敗
解決方案:從 2021/8/13 起,GitHub 在 push 專案時不再接受密碼認證,替代方法可以使用一個較快速的 personal token。
先從 GitHub 網站新增一個 personal token
GitHub > Setting > Developer Settings > Personal Access Token > Tokens (classic)
這個 token 是用來取代密碼,git push 時出現密碼詢問,就輸入 token。