git pull git push Access Token

git pull 和git push時報錯,現在GitHub都是用Access Token了。

remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: unable to access 'https://github.com/***/***.git/': The requested URL returned error: 403

先刪除鑰匙串里保存的github賬號密碼


截屏2021-08-16 上午9.41.58.png

刪除以后再git操作的時候就會讓你再次輸入github的賬號密碼,這時候密碼不要輸入原來的密碼,輸入GitHub里生成的Access Token。

生成token方法點這里

生成的Access Token只能看到一次,所以需要你復制出來保存起來。

?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容