01-安装hexo及在github上传载(windows系统)


<center>01-安装hexo及在github上传载(windows系统)</center>

Windows:安装hexo

我的电脑很早之前安装过一次,这次就先不写特别详细了。

参考资料

https://www.bilibili.com/read/cv12633102

  1. 建议全部使用 git bash来执行,git bash 命令类似于 linux 的终端。

安装Git

刘锦灿@LAPTOP-085N0595 MINGW64 /d/Liu-Jincan.github.io
$ git --version
git version 2.31.1.windows.1

安装Nodejs

## node
刘锦灿@LAPTOP-085N0595 MINGW64 /d/Liu-Jincan.github.io
$ hexo version
INFO  Validating config
hexo: 5.4.0
hexo-cli: 4.3.0
os: win32 10.0.19042
node: 15.11.0
v8: 8.6.395.17-node.27
uv: 1.41.0
zlib: 1.2.11
brotli: 1.0.9
ares: 1.17.1
modules: 88
nghttp2: 1.42.0
napi: 7
llhttp: 2.1.3
openssl: 1.1.1j
cldr: 38.1
icu: 68.


## npm
刘锦灿@LAPTOP-085N0595 MINGW64 /d/Liu-Jincan.github.io
$ npm

Usage: npm <command>

npm install        install all the dependencies in your project
npm install <foo>  add the <foo> dependency to your project
npm test           run this project's tests
npm run <foo>      run the script named <foo>
npm <command> -h   quick help on <command>
npm -l             display usage info for all commands
npm help <term>    search for help on <term> (in a browser)
npm help npm       more involved overview (in a browser)

All commands:

    access, adduser, audit, bin, bugs, cache, ci, completion,
    config, dedupe, deprecate, diff, dist-tag, docs, doctor,
    edit, exec, explain, explore, find-dupes, fund, get, help,
    hook, init, install, install-ci-test, install-test, link,
    ll, login, logout, ls, org, outdated, owner, pack, ping,
    prefix, profile, prune, publish, rebuild, repo, restart,
    root, run-script, search, set, set-script, shrinkwrap, star,
    stars, start, stop, team, test, token, uninstall, unpublish,
    unstar, update, version, view, whoami

Specify configs in the ini-formatted file:
    C:\Users\Liujincan2\.npmrc
or on the command line via: npm <command> --key=value

More configuration info: npm help config
Configuration fields: npm help 7 config

npm@7.6.0 

安装hexo

刘锦灿@LAPTOP-085N0595 MINGW64 /d/Liu-Jincan.github.io
$ hexo version
INFO  Validating config
hexo: 5.4.0
hexo-cli: 4.3.0
os: win32 10.0.19042
node: 15.11.0
v8: 8.6.395.17-node.27
uv: 1.41.0
zlib: 1.2.11
brotli: 1.0.9
ares: 1.17.1
modules: 88
nghttp2: 1.42.0
napi: 7
llhttp: 2.1.3
openssl: 1.1.1j
cldr: 38.1
icu: 68.2
tz: 2020d
unicode: 13.0

Windows:ssh实现本地和仓库的连接

通过 git bash 实现,与 linux 的操作基本一样。

刘锦灿@LAPTOP-085N0595 MINGW64 /d/.ssh
$ ssh-keygen -t rsa -C 3079779149@qq.com
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/Liujincan2/.ssh/id_rsa):
/c/Users/Liujincan2/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/Liujincan2/.ssh/id_rsa
Your public key has been saved in /c/Users/Liujincan2/.ssh/id_rsa.pub
The key fingerprint is:
SHA256:ME600NxjHt7s/RQTWMRvb8V8qPAIqVDYYMpCXr4mOkk 3079779149@qq.com
The key's randomart image is:
+---[RSA 3072]----+
| . .+*..     =o  |
|o.oo.o=.=   . o  |
|..o. .=+ *     * |
| .  oo o= +   + B|
| E o ...So = . ++|
|o.o   .   o + . o|
|+            o . |
| .            .  |
|                 |
+----[SHA256]-----+

刘锦灿@LAPTOP-085N0595 MINGW64 /d/.ssh
$ cd /c/Users/Liujincan2/.ssh/

刘锦灿@LAPTOP-085N0595 MINGW64 ~/.ssh
$ ls
id_rsa  id_rsa.pub  known_hosts  known_hosts.old

刘锦灿@LAPTOP-085N0595 MINGW64 ~/.ssh
$ cat id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCdVudMdx9IZTpVWYO01px1y0taafRUEjM4msGjrCwfi5+nwEMaDrpyryM84D1ginTb7luTMyuc/w+1Fcp05aXxEA/Mwo6ZTnhu6LWUXuv/WR2PNPfMRk6iC6rprrzymhG3U5ADKXU8a23Yf4Lr/9S0IINqOi7mbc1/1ceKY11nWOBXs4o8BJLkQZIHAF/8n/PprHRtmMInDqP0njIsohtlH0vcwxT6+emUptSh90F1eBdVQUbTWUUUpdluJ5MUVwARkZ8QwzCrkJqHr6I5Z+l/BRXMp3AWUFmtWzzwV5gNNK3QyUMSAKSDv6wjAhU60cvKXcbUfwSYqXGaUgr0JAOTff4aaj03tcIZId7X8+k+rMh2bEjt9LKqToA0FK59nfTSvgSMF7AoGg0VFQPX01q+bUPAPZ9QgVVudsnvlH1R8AutwvJW/PNqtHvt/34srevz+R7HzOaaDDbdtDAGW1QKfPRYlFKQKPz4rjjnIVn57slVly7FdfIlr3oMDOuMrLM= 3079779149@qq.com

刘锦灿@LAPTOP-085N0595 MINGW64 ~/.ssh
$ ## 得到.ssh密钥后,

刘锦灿@LAPTOP-085N0595 MINGW64 ~/.ssh
$ ## 将.ssh\id_rsa.pub文件复制,

刘锦灿@LAPTOP-085N0595 MINGW64 ~/.ssh
$ ## Github: 个人设置 -> SSH and GPG keys -> New SSH key,把复制的内容粘贴进去,title随便填,保存即可,我们的公钥就添加成功了.^C

刘锦灿@LAPTOP-085N0595 MINGW64 ~/.ssh
$ ssh -T git@github.com
Hi Liu-Jincan! You've successfully authenticated, but GitHub does not provide shell access.

刘锦灿@LAPTOP-085N0595 MINGW64 ~/.ssh
$ git config --global user.name "Liu-Jincan"

刘锦灿@LAPTOP-085N0595 MINGW64 ~/.ssh
$ git config --global user.email  "3079779149@qq.com"

Windows:hexo d 初次实现

错误:OpenSSL SSL_read: Connection was aborted, errno 10053

刘锦灿@LAPTOP-085N0595 MINGW64 /d/Liu-Jincan.github.io
$ hexo clean
INFO  Validating config
INFO  Deleted database.
INFO  Deleted public folder.

刘锦灿@LAPTOP-085N0595 MINGW64 /d/Liu-Jincan.github.io
$ hexo g >/dev/null

## OpenSSL SSL_read: Connection was aborted, errno 10053
刘锦灿@LAPTOP-085N0595 MINGW64 /d/Liu-Jincan.github.io
$ hexo d
INFO  Validating config
INFO  Deploying: git
INFO  Clearing .deploy_git folder...
INFO  Copying files from public folder...
INFO  Copying files from extend dirs...
warning: LF will be replaced by CRLF in 2021/12/20/hello-world/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in 2021/12/21/hexo-jincan/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in 2021/12/24/matery/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in 2021/12/24/typora-jincan/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in 2021/12/25/linux-ubuntu/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in 2021/12/25/wavewatch3/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in 404/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in about/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in archives/2021/12/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in archives/2021/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in archives/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in categories/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in categories/linux/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in categories/博客搭建/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in categories/海浪数值模型/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in contact/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in css/barrager.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in css/bb.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in css/gallery.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in css/gitment.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in css/matery.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in css/my-gitalk.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in css/my.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in friends/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in js/crypto-js.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in js/gallery-encrypt.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in js/jquery.barrager.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in js/matery.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in js/search.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/animate/animate.min.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/aos/aos.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/aos/aos.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/aplayer/APlayer.min.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/aplayer/APlayer.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/aplayer/Meting.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/awesome/css/all.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/awesome/css/all.min.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/awesome/webfonts/fa-brands-400.svg.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/awesome/webfonts/fa-regular-400.svg.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/awesome/webfonts/fa-solid-900.svg.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/background/canvas-nest.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/background/ribbon-dynamic.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/codeBlock/codeBlockFuction.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/codeBlock/codeCopy.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/codeBlock/codeLang.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/codeBlock/codeShrink.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/cryptojs/crypto-js.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/dplayer/DPlayer.min.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/dplayer/DPlayer.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/echarts/echarts.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/fancybox/fancybox.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/gitalk/gitalk.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/gitalk/gitalk.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/gitment/gitment-default.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/gitment/gitment.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/instantpage/instantpage.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/jqcloud/jqcloud-1.0.4.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/jqcloud/jqcloud.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/jquery/jquery-3.6.0.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/justifiedGallery/justifiedGallery.min.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/justifiedGallery/justifiedGallery.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/lightGallery/fonts/lg.svg.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/lightGallery/js/lightgallery-all.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/masonry/masonry.pkgd.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/materialize/materialize.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/mermaid/mermaid.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/mermaid/mermaid.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/others/TencentCaptcha.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/others/sakura.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/others/snow.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/others/star.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/prism/prism.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/share/css/share.min.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/share/js/jquery.share.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/share/js/social-share.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/tocbot/tocbot.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/twikoo/twikoo.all.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/twikoo/twikoo.all.min.js.LICENSE.txt.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/valine/Valine.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/valine/av-min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in search.xml.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tags/Markdown/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tags/Typora/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tags/WW3/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tags/hexo/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tags/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tags/linux/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tags/matery/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tags/ubuntu/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tags/博客搭建/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tags/海浪数值模型/index.html.
The file will have its original line endings in your working directory
[master 07e5213] Site updated: 2021-12-26 09:46:39
 29 files changed, 560 insertions(+), 396 deletions(-)
fatal: unable to access 'https://github.com/Liu-Jincan/Liu-Jincan.github.io.git/': OpenSSL SSL_read: Connection was aborted, errno 10053
FATAL {
  err: Error: Spawn failed
      at ChildProcess.<anonymous> (D:\Liu-Jincan.github.io\node_modules\hexo-util\lib\spawn.js:51:21)
      at ChildProcess.emit (node:events:378:20)
      at ChildProcess.cp.emit (D:\Liu-Jincan.github.io\node_modules\cross-spawn\lib\enoent.js:34:29)
      at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) {
    code: 128
  }
} Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html

方法一 (失败)

https://blog.csdn.net/bigcat030/article/details/115742972 (失败)

方法二 (失败)

https://blog.csdn.net/ZJ_____W/article/details/114778696 (失败)

刘锦灿@LAPTOP-085N0595 MINGW64 /d/Liu-Jincan.github.io
$ git config http.sslVerify "false"
fatal: not in a git directory

https://www.cnblogs.com/emanlee/p/12993683.html 解决:fatal: not in a git directory

刘锦灿@LAPTOP-085N0595 MINGW64 /d/Liu-Jincan.github.io
$ git init
Initialized empty Git repository in D:/Liu-Jincan.github.io/.git/

刘锦灿@LAPTOP-085N0595 MINGW64 /d/Liu-Jincan.github.io (main)
$ git config http.sslVerify "false"

刘锦灿@LAPTOP-085N0595 MINGW64 /d/Liu-Jincan.github.io (main)
$ cd ..

刘锦灿@LAPTOP-085N0595 MINGW64 /d
$ cd ./Liu-Jincan.github.io/
刘锦灿@LAPTOP-085N0595 MINGW64 /d/Liu-Jincan.github.io (main)
$ git config --global http.postBuffer 524288000

刘锦灿@LAPTOP-085N0595 MINGW64 /d/Liu-Jincan.github.io (main)
$ git config http.sslVerify "false"

刘锦灿@LAPTOP-085N0595 MINGW64 /d/Liu-Jincan.github.io (main)
$ hexo clean
INFO  Validating config
INFO  Deleted database.
INFO  Deleted public folder.

刘锦灿@LAPTOP-085N0595 MINGW64 /d/Liu-Jincan.github.io (main)
$ hexo g >/dev/null

刘锦灿@LAPTOP-085N0595 MINGW64 /d/Liu-Jincan.github.io (main)
$ hexo d
INFO  Validating config
INFO  Deploying: git
INFO  Clearing .deploy_git folder...
INFO  Copying files from public folder...
INFO  Copying files from extend dirs...
warning: LF will be replaced by CRLF in 2021/12/20/hello-world/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in 2021/12/21/hexo-jincan/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in 2021/12/24/matery/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in 2021/12/24/typora-jincan/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in 2021/12/25/linux-ubuntu/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in 2021/12/25/wavewatch3/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in 404/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in about/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in archives/2021/12/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in archives/2021/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in archives/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in categories/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in categories/linux/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in categories/博客搭建/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in categories/海浪数值模型/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in contact/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in css/barrager.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in css/bb.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in css/gallery.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in css/gitment.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in css/matery.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in css/my-gitalk.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in css/my.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in friends/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in js/crypto-js.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in js/gallery-encrypt.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in js/jquery.barrager.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in js/matery.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in js/search.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/animate/animate.min.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/aos/aos.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/aos/aos.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/aplayer/APlayer.min.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/aplayer/APlayer.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/aplayer/Meting.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/awesome/css/all.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/awesome/css/all.min.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/awesome/webfonts/fa-brands-400.svg.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/awesome/webfonts/fa-regular-400.svg.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/awesome/webfonts/fa-solid-900.svg.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/background/canvas-nest.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/background/ribbon-dynamic.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/codeBlock/codeBlockFuction.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/codeBlock/codeCopy.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/codeBlock/codeLang.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/codeBlock/codeShrink.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/cryptojs/crypto-js.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/dplayer/DPlayer.min.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/dplayer/DPlayer.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/echarts/echarts.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/fancybox/fancybox.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/gitalk/gitalk.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/gitalk/gitalk.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/gitment/gitment-default.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/gitment/gitment.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/instantpage/instantpage.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/jqcloud/jqcloud-1.0.4.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/jqcloud/jqcloud.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/jquery/jquery-3.6.0.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/justifiedGallery/justifiedGallery.min.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/justifiedGallery/justifiedGallery.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/lightGallery/fonts/lg.svg.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/lightGallery/js/lightgallery-all.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/masonry/masonry.pkgd.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/materialize/materialize.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/mermaid/mermaid.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/mermaid/mermaid.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/others/TencentCaptcha.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/others/sakura.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/others/snow.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/others/star.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/prism/prism.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/share/css/share.min.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/share/js/jquery.share.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/share/js/social-share.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/tocbot/tocbot.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/twikoo/twikoo.all.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/twikoo/twikoo.all.min.js.LICENSE.txt.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/valine/Valine.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in libs/valine/av-min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in search.xml.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tags/Markdown/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tags/Typora/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tags/WW3/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tags/hexo/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tags/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tags/linux/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tags/matery/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tags/ubuntu/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tags/博客搭建/index.html.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tags/海浪数值模型/index.html.
The file will have its original line endings in your working directory
[master 92b698b] Site updated: 2021-12-26 10:09:51
 15 files changed, 134 insertions(+), 134 deletions(-)
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/Liu-Jincan/Liu-Jincan.github.io.git/'
FATAL {
  err: Error: Spawn failed
      at ChildProcess.<anonymous> (D:\Liu-Jincan.github.io\node_modules\hexo-util\lib\spawn.js:51:21)
      at ChildProcess.emit (node:events:378:20)
      at ChildProcess.cp.emit (D:\Liu-Jincan.github.io\node_modules\cross-spawn\lib\enoent.js:34:29)
      at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) {
    code: 128
  }
} Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html

方法三(成功)

运行代码

hexo clean

hexo g

git config --global http.postBuffer 524288000

git config http.sslVerify "false"

git config --global user.name "Liu-Jincan"

git config --global user.email  "3079779149@qq.com"

hexo d

具体内容

刘锦灿@LAPTOP-085N0595 MINGW64 /d/Liu-Jincan.github.io (main)
$ git config --global user.name "Liu-Jincan"

刘锦灿@LAPTOP-085N0595 MINGW64 /d/Liu-Jincan.github.io (main)
$ git config --global user.email  "3079779149@qq.com"


## 
刘锦灿@LAPTOP-085N0595 MINGW64 /d/Liu-Jincan.github.io (main)
$ hexo d
INFO  Validating config
INFO  Deploying: git
INFO  Clearing .deploy_git folder...
INFO  Copying files from public folder...
INFO  Copying files from extend dirs...
On branch master
nothing to commit, working tree clean

INFO  Bye!
fatal: helper error (-1073741510): Unknown

刘锦灿@LAPTOP-085N0595 MINGW64 /d/Liu-Jincan.github.io (main)
$


## 需要输入一个 token 密码
刘锦灿@LAPTOP-085N0595 MINGW64 /d/Liu-Jincan.github.io (main)
$ hexo d
INFO  Validating config
INFO  Deploying: git
INFO  Clearing .deploy_git folder...
INFO  Copying files from public folder...
INFO  Copying files from extend dirs...
On branch master
nothing to commit, working tree clean
Enumerating objects: 202, done.
Counting objects: 100% (202/202), done.
Delta compression using up to 8 threads
Compressing objects: 100% (89/89), done.
Writing objects: 100% (149/149), 31.16 KiB | 275.00 KiB/s, done.
Total 149 (delta 70), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (70/70), completed with 21 local objects.
To https://github.com/Liu-Jincan/Liu-Jincan.github.io.git
   4ffad58..92b698b  HEAD -> main
Branch 'master' set up to track remote branch 'main' from 'https://github.com/Liu-Jincan/Liu-Jincan.github.io.git'.
INFO  Deploy done: git

Author: Jincan
Reprint policy: All articles in this blog are used except for special statements CC BY 4.0 reprint policy. If reproduced, please indicate source Jincan !
  TOC