====================================================
.deploy_git 目录下打开git Bash命令
查看it80是否有权限登陆1$ ssh -T git@it80.github.com
提示1Hi it80! You've successfully authenticated, but GitHub does not provide shell access.
设置Git的user name和email(本地有两个账号,所有省略global):
|
|
(删除./deploy_git 重新生成用 git init,
将本地仓库和远程仓库连接(这一步骤可以不做):
$ git remote add origin git@github.com:your_github_user_name/your_github_user_name.github.io.git(远程仓库ssh地址) )
Settings - Emails 不勾选 Keep my email address private
更新文章: 命令行进入 hexo 目录下.deploy_git
hexo g
hexo d
Hexo建立文章及提交文章命令行提示
- hexo g //生成页面
|
|
- hexo d //部署到github12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455Administrator@XXXXXX MINGW64 /d/hexo$ hexo d(node:26368) [DEP0061] DeprecationWarning: fs.SyncWriteStream is deprecated.INFO Deploying: gitINFO Clearing .deploy_git folder...INFO Copying files from public folder...INFO Copying files from extend dirs...warning: LF will be replaced by CRLF in 2015/01/05/hello-world/index.html.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in 2015/05/09/about/index.html.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in 2015/05/10/Hexo +github/index.html.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in 2017/06/10/about/index.html.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in 2017/06/10/标题/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/2015/01/index.html.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in archives/2015/05/index.html.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in archives/2015/index.html.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in archives/2017/06/index.html.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in archives/2017/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 css/style.css.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/GithubRepoWidget.js.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in js/instagram.js.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in js/main.js.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in js/mobile.js.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in js/pc.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 js/toc.js.The file will have its original line endings in your working directory.[master 07e344f] Site updated: 2017-06-10 15:38:332 files changed, 7 insertions(+), 7 deletions(-)Branch master set up to track remote branch master from https://github.com/it80/it80.github.io.git.To https://github.com/it80/it80.github.io.gitd637c8d..07e344f HEAD -> masterINFO Deploy done: git