Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
git push 報錯?
說密碼認證已于2021-08-13被移除,請用個人訪問令牌代替。
進入github -- settings --? Developer settings --?Personal access tokens --? 填寫 note 、過期時間 等 點擊生成token
然后保存生成的token
項目地址:https://github.com/xxx/xxx.git
設(shè)置源地址加上token(項目地址前加上token@) :
?git remote set-url origin https://<token>@github.com/xxx/xxx.git
然后git push? 就成功啦