【发布时间】:2022-01-22 10:46:31
【问题描述】:
我的 GitHub 个人访问令牌已过期,我实在不知道如何在命令行上更新个人访问令牌。
git push
Password for 'https://PERSONAL_ACCESS_TIME@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/myuser/myrepor.git/'
任何帮助将不胜感激,因为我很困惑
【问题讨论】:
-
您是否阅读了docs.github.com/en/authentication/… 的说明?你在哪里卡住了?
-
我已阅读 github 文档,URL 包含旧令牌,我不知道如何更新它
-
所以你的问题是关于找到令牌保存的位置,而不是重新生成它?