美文网首页
git | Support for password authe

git | Support for password authe

作者: 无夜之星辰 | 来源:发表于2021-08-25 14:46 被阅读0次

问题

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. 重新设置远程仓库地址

举例:

  • 仓库地址是: 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 了。

相关文章

网友评论

      本文标题:git | Support for password authe

      本文链接:https://www.haomeiwen.com/subject/uhosiltx.html