git clone 遇到的錯誤
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/DriftersCN/vue.git'
解決方案
原因: Github 把密碼換成 Token
生成自己的 Token,在個人設(shè)置頁面,找到 Setting
選擇開發(fā)者設(shè)置 Developer setting
選擇個人訪問令牌 Personal access tokens,然后選中生成令牌 Generate new token
?設(shè)置 Token 的有效期,訪問權(quán)限等
?
?生成令牌 Generate Token,記得把你的 token 保存下來,因為你再次刷新網(wǎng)頁的時候,你已經(jīng)沒有辦法看到它了,只能再次創(chuàng)建新token
?
?文章來源地址http://www.zghlxwxcb.cn/news/detail-780427.html
?文章來源:http://www.zghlxwxcb.cn/news/detail-780427.html
?
到了這里,關(guān)于解決git fatal: Authentication failed for ‘https://github.com的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!