请改用个人访问令牌。 (但使用一个)
Please use a personal access token instead. (But using one)
Username for 'https://github.com': username
Password for 'https://username@github.com':
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: Authentication failed for 'https://github.com/username/repo.git/'
尽管使用了个人访问令牌,但我仍然收到此错误,它已经正常工作了大约 6 个月,没有到期日期。
但现在我试图对我的 vps 进行一些更改,但出现了此错误。
我创建了一个新的访问令牌,但仍然出现同样的错误。
我该如何解决这个问题?
通过在推或拉东西之前设置原点url来解决问题,就像这样:
~$ git remote set-url origin https://<githubtoken>@github.com/<username>/<repositoryname>.git
~$ git pull origin <branch>
如这里所说“Support for password authentication removed” for GitHub. How to Generate Personal Access Token?
Username for 'https://github.com': username
Password for 'https://username@github.com':
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: Authentication failed for 'https://github.com/username/repo.git/'
尽管使用了个人访问令牌,但我仍然收到此错误,它已经正常工作了大约 6 个月,没有到期日期。
但现在我试图对我的 vps 进行一些更改,但出现了此错误。
我创建了一个新的访问令牌,但仍然出现同样的错误。
我该如何解决这个问题?
通过在推或拉东西之前设置原点url来解决问题,就像这样:
~$ git remote set-url origin https://<githubtoken>@github.com/<username>/<repositoryname>.git
~$ git pull origin <branch>
如这里所说“Support for password authentication removed” for GitHub. How to Generate Personal Access Token?