关于解决Hexo上传时出现errorSpawn错误的详细说明
是什么:错误展示:error:spawn failed...fatal: cannot lock ref 'HEAD': unable to resolve reference HEAD: Invalid argument error: src refspecerror: src refspec HEAD does not match any.
为什么:问题大多是因为git 进行push或者hexo d的时候改变了一些.deploy_git文件下的内容。
怎么做:
关键:删除.deploy_git文件夹;git config --global core.autocrlf false
之后:终端blog目录下使用管理员权限执行:hexo clean && hexo g
hexo deploy
运行后问题解决
注意:问题可能会重复出现,只需再次删除.deploy_git后重新运行即可。
常见错误汇总warning: LF will be replaced by CRLF in js/utils.js.解决方法
git config –glo ...
Godaddy域名解析速度慢问题以及如何使用DNSPod解析解决
是什么:Godaddy域名解析后网站经常打不开或者解析失败现象:dns解析自己的域名之后,发现打开网站经常打不开、很慢,解析出错等问题
为什么:Godaddy域名解析很慢是什么原因导致分析:不解析域名打开的网站很快,去ping了服务器ip,发现速度也是很快,显然是域名解析出了问题。
原因:Goddady默认的DNS解析是很慢,不适合我们国内中文网站。
怎么做:解决Godaddy域名DNS不稳定的方法优解:需要更换一个国内的DNS解析,本文我使用腾讯云的DNSPod做演示。
流程:
先注册DNSPod,首先需要有一个DnsPod的账户
在总览页添加你的域名
之后会得到提示显示你的DNS解析服务器不是DNSPod,记住DNSPod所给的两个服务器地址,这是关键
打开Goddady,进入你的DNS管理页面,Manage DNS
更改解析服务器为上面DNSPod所给的两个服务器地址,Charge保存,大约30分钟左右生效
回到DNSPod,进行解析服务即可。
注意:原有的Goddady上的解析记录清零,需要重新在DNSPod上解析。
相关知识科普:DNS服务器分类缓存域名服务器
也 ...
Markdown语法hexo常用汇总
一、Markdown简介Markdown 是一种轻量级标记语言,它允许人们使用易读易写的纯文本格式编写文档。
Markdown 语言在 2004 由约翰·格鲁伯(英语:John Gruber)创建。
Markdown 编写的文档可以导出 HTML 、Word、图像、PDF、Epub 等多种格式的文档。
Markdown 编写的文档后缀为 .md, .markdown。
Markdown 能被使用来撰写电子书,如:Gitbook。
当前许多网站都广泛使用 Markdown 来撰写帮助文档或是用于论坛上发表消息。例如:GitHub、简书、reddit、Diaspora、Stack Exchange、OpenStreetMap 、SourceForge等。
Markdown编写Hello World!语法:
1# Hello World!
二、Markdown标题使用 # 号可表示 1-6 级标题,一级标题对应一个 # 号,二级标题对应两个 # 号,以此类推。
使用#号标记标题语法格式:
1234567891011# 一级标题## 二级标题### 三级标题#### 四级标题##### 五级 ...
Some beautiful en poem
EnglishAh, are you digging on my grave?By Thomas Hardy
“Ah, are you digging on my grave,
My loved one? – planting rue?”
– “No: yesterday he went to wed
One of the brightest wealth has bred.
‘It cannot hurt her now,’ he said,
‘That I should not be true.’”
“Then who is digging on my grave,
My nearest dearest kin?”
– “Ah, no: they sit and think, ‘What use!
What good will planting flowers produce?
No tendance of her mound can loose
Her spirit from Death’s gin.’”
“But someone digs upon my grave?
My e ...
Hello BUG
Welcome to CtrlX’BLOG! This is just a info about this big big bug..Check about for more information. If you get any problems when using this BUG, you can find the answer in troubleshooting or you can ask me on QQ or find s.t. in hexo’GitHub.
Quick Start BUGUsing Py create a new BUGSecretly tell you how to use PY create a BUG.
1print("BUG")
Using C create a new BUGSecretly tell you how to use PY create a BUG.
12345678#include <stdio.h>int main(void){ printf("BUG" ...