鍍金池/ 問(wèn)答/Linux  HTML/ . 將本地的Hexo文件更新到Github的庫(kù)中遇到的問(wèn)題

. 將本地的Hexo文件更新到Github的庫(kù)中遇到的問(wèn)題

輸入 hexo d出現(xiàn):
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)

接下來(lái)該怎么辦?

回答
編輯回答
安淺陌

打開根目錄下的_config.yml文件,找到deploy配置的地方,改成如下配置試試:

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

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

clipboard.png

希望我的回答對(duì)你有所幫助!
2017年12月20日 05:31