git | Support for password authe
2021-08-25 本文已影响0人
Lol刀妹
问题
git push 的时候提示:
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
解决方案
1. 创建 personal access token
2. 重新设置远程仓库地址
举例:
- 仓库地址是:
https://github.com/Jack/demo.git
- personal access token 是:
abcToken
那么执行:
git remote set-url origin https://abcToken@github.com/Jack/demo.git
3. pull 一下
git pull https://abcToekn@github.com/Jack/demo.git
这套操作下来就可以正常 push 了。