惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Engineering at Meta
Engineering at Meta
J
Java Code Geeks
I
InfoQ
腾讯CDC
Vercel News
Vercel News
IT之家
IT之家
V
Visual Studio Blog
P
Proofpoint News Feed
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
G
Google Developers Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 叶小钗
有赞技术团队
有赞技术团队
月光博客
月光博客
Martin Fowler
Martin Fowler
量子位
L
LangChain Blog
B
Blog
Last Week in AI
Last Week in AI
博客园 - 司徒正美
Microsoft Security Blog
Microsoft Security Blog
博客园 - 聂微东
Microsoft Azure Blog
Microsoft Azure Blog
A
About on SuperTechFans

博客园 - googlegis

npm install 指定安装源 windows 下 CodeX 提示 Computer Use plugins unavailable 使用gzip压缩3dtiles Cesium 加载 3dtiles 优化方案 Bad owner or permissions on /var/lib/jenkins/.ssh/config docker 删除 容器和镜像 docker 下安装 gitlab EE docker 在 linux 下的安装及使用 npm/npx 指定源 根据经纬度获取地形数据高程 GeoServer加载shp文件后中文乱码 Cesium中glb模型颜色暗淡解决 mongod.service failed with result exit-code npm、pnpm系统禁止了脚本的执行 当前计算机配置不支持 wsl2--已解决 el-switch 初始化时触发切换 使用vim修改linux中的文件 在 wsl2 中安装redis wsl 安装 Module '"element-plus"' has no export memeber 'ElMessage'. Did you mean to user 'import ElMessage from "element-plus" CodeBlocks window下安装后找不到编译器 CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory Error message "error:0308010C:digital envelope routines::unsupported"
hexo 推送需要github的用户名
googlegis · 2024-11-03 · via 博客园 - googlegis

问题描述
hexo 博客许久未写,今天尝试更新,发现 hexo d 之后需要输入 github 的用户名和密码,但是我输入之后没有效果,还是无法推送到 github 上。
研究之后发现 rootcause 是:github 已经无法再用密码登陆推送,只能用 token,

而这里的token并不是 ssh-keys 里面的key,而是个人 token。 Settings--Develop Settings--Personal access tokens--tokens (classic)

解决方法
1. 重新生成新的 token
新的 token 设置网址:Personal Access Tokens (Classic) (github.com)


新的 token记得保存好,网页刷新之后就再也看不见了。

2. 配置 hexo config.yml
配置 hexo config.yml:
repo: https://your_personal_token@github.com/googlegis/googlegis.github.io.git

替换 your_personal_token 替换成上一步的 token 就好了。