创建新的 GitHub 访问令牌后出错
Error after I create new GitHub access token
我按照创建新令牌的步骤操作,然后将其替换到我的 Mac 钥匙串上。
之后,我尝试将我的代码推送到 GitHub,但随后出现了同样的错误:
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.
如果我创建了一个新令牌,为什么会发生这个错误?在这种情况下我缺少什么?
创建个人令牌后,像这样更改来源:
git remote set-url origin https://username:<MYTOKEN>@github.com/username/repo.git
我按照创建新令牌的步骤操作,然后将其替换到我的 Mac 钥匙串上。 之后,我尝试将我的代码推送到 GitHub,但随后出现了同样的错误:
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.
如果我创建了一个新令牌,为什么会发生这个错误?在这种情况下我缺少什么?
创建个人令牌后,像这样更改来源:
git remote set-url origin https://username:<MYTOKEN>@github.com/username/repo.git