git的提交失败及解决
问题描述
今天在提交博客源码到仓库的时候,输入正确的账号和密码发现提交失败并提示
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
大概意思是从2021年8月13号开始。使用个人令牌代替密码登录。于是参考以下帖子解决https://blog.csdn.net/weixin_41010198/article/details/119698015。
问题的解决
- 打开github的
settings
的deveploer settings
。 - 点击
Personal access tokens
- 这个Personal access tokens只出现一次要保存起来。
- 把这个token替换在hexo的_config.yml文件 部署模块中的repo
1 | # Deployment |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 周大嘟!