hexo d 報錯:INFO Validating config


今天在使用hexo搭建個人博客的時候,出現一個及其令人噴血的報錯:

我幾乎查遍了所有有關hexo提交報錯的解決辦法,都!沒!用!


就在我准備重裝虛擬機系統的時候,掃了一眼創建文件下的配置文件推送路徑:

deploy:
  type: ''
  repo: 
    github: git@github.com:LemonMei/LemonMei.github.io.git
    # github: https://github.com/LemonMei/LemonMei.github.io.git
  branch: master

# backup
backup:
  type: git
  message: backup my blog of https://yourname.github.io/
  repository:
    github: https://github.com/LemonMei/LemonMei.github.io.git,backup

TMD!!!
我的type后面沒有跟git!!!


真的絕了...


附上他正確的寫法:

deploy:
  type: git
  repo: 
    github: git@github.com:LemonMei/LemonMei.github.io.git
    # github: https://github.com/LemonMei/LemonMei.github.io.git
  branch: master

# backup
backup:
  type: git
  message: backup my blog of https://yourname.github.io/
  repository:
    github: https://github.com/LemonMei/LemonMei.github.io.git,backup


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM