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

https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token

2. 重新设置远程仓库地址

举例:

那么执行:

git remote set-url origin https://abcToken@github.com/Jack/demo.git

3. pull 一下

git pull https://abcToekn@github.com/Jack/demo.git

这套操作下来就可以正常 push 了。

上一篇下一篇

猜你喜欢

热点阅读