. 将本地的Hexo文件更新到Github的库中遇到的问题

输入 hexo d出现:
fatal: 'git@github.com/lixinblog/lixinblog.github.io.git' does not appear to be a git repository
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: http://hexo.io/docs/troublesh...
Error: fatal: 'git@github.com/lixinblog/lixinblog.github.io.git' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

at ChildProcess.<anonymous> (D:\blog\node_modules\hexo-util\lib\spawn.js:37:17)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at ChildProcess.cp.emit (D:\blog\node_modules\cross-spawn\lib\enoent.js:40:29)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

接下来该怎么办?

阅读 4.5k
1 个回答

打开根目录下的_config.yml文件,找到deploy配置的地方,改成如下配置试试:

deploy:
  type: git
  repository: git@github.com:lixinblog/lixinblog.github.io.git
  branch: master

下面branch代表的就是分支的意思,一般都是master分支

clipboard.png

希望我的回答对你有所帮助!
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题