天天看點

remote: Support for password authentication was removed on August 13, 2021.

今天Git上傳項目時遇到了以下報錯:

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: unable to access 'https://github.com/LALBJ/LAndW.git/': The requested URL returned error: 403
           

2021年8月13日之後,就不再支援密碼驗證進行上傳了,需要使用私人的token進行上傳。

具體資訊見Token authentication requirements for Git operations

是以為了解決這個問題,我們需要自己申請一個個人通路令牌,通過令牌進行上傳等操作。

這裡,我附上一個教程裡面詳細介紹了申請令牌的步驟。

GitHub 建立個人通路令牌

在申請完令牌後删除掉本地憑據(也就是賬号密碼資訊),再次上傳即可解決問題。