解决 hexo 搭建的博客无法上传文章问题

由于GitHub在2021年8月13日后不再接受密码认证,博主在尝试上传hexo博客时遇到问题。解决方案是通过创建个人访问token并用其替代密码进行HTTPS认证。创建token后,重新执行上传命令,使用token作为密码,即可成功上传博客。
摘要由CSDN通过智能技术生成

有一天写完博客,准备上传时,执行 hexo d 命令后上传失败,并要求重新输入账号密码进行上传,输入密码后报了下面的错误:

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/chunheli/chunheli.github.io.git/'
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: Spawn failed
    at ChildProcess.<anonymous
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值