hexo d的出错记录

好奇怪呢,一个多月以来第一次遇到一些问题……


Fatal1

git fatal: detected dubious ownership in repository
直译过来是仓库检测到可疑的所有者

具体的下面的报错我忘记复制下来了,大意是以前仓库的所有者是’S-1-5-32-544’,现在是×××。下面还有提示是如果要给这个所有者权限,可以输入×××。(但是我一开始没有认真读这段话,直接搜了解决方法)

找到普遍的解决方法都是这种类型的文章,我试着改了一下,一点用也没有,因为我不知道’S-1-5-32-544’是什么所有者的名字,现在又是什么所有者……到最后是认真读了读提示,把那段命令复制下来运行,解决。

Fatal2

以下是报错全文:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
On branch master
nothing to commit, working tree clean
kex_exchange_identification: Connection closed by remote host
Connection closed by ::1 port 22
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
Error: Spawn failed
at ChildProcess.<anonymous> (D:\colorlife\diligencyj.github.io\node_modules\hexo-util\lib\spawn.js:51:21)
at ChildProcess.emit (node:events:513:28)
at cp.emit (D:\colorlife\diligencyj.github.io\node_modules\cross-spawn\lib\enoent.js:34:29)
at ChildProcess._handle.onexit (node:internal/child_process:291:12)

说我Could not read from remote repository.奇怪极了。可能的原因和解决方法千奇百怪,最后看到一个很合我新意的回答:如果之前楼上的答案都不行 ,你可以试着换个IP,你会惊奇的发现,耶 !特么的竟然好了! 哈哈有意思,还有一个回答说网络异常也会这样。

没错,我重试了几次之后就又可以了(耶!)