hexo博客上传github page

  1. 在github上新建仓库,仓库名必须严格为 用户名.github.io,并在setting里打开github page的设置
  2. _config.yml加入:
yml 复制代码
deploy:
  type: git # 部署类型,如 git, heroku 等
  repo: https://github.com/2008zhangtx-oss/2008zhangtx-oss.github.io.git
  branch: main
  1. git下载插件:
bash 复制代码
 npm install hexo-deployer-git --save
  1. 终端上传:
bash 复制代码
hexo clean; hexo g; hexo d
hexod # powershell配置
  1. 终端由于网络上传失败,要去配代理
bash 复制代码
git config --global http.proxy http://127.0.0.1:17890
git config --global https.proxy http://127.0.0.1:17890

配完后可以取消:

bash 复制代码
git config --global --unset http.proxy
git config --global --unset https.proxy
相关推荐
思麟呀1 小时前
Git入门
git
Ws_1 小时前
Git + Gerrit 第八课:reset 与 revert 撤销提交
git
Zy_Yin1231 小时前
拆解如何用anthropic金融agent做投研
人工智能·python·深度学习·金融·github
该昵称用户已存在1 小时前
从 GitHub 到产线:MyEMS 开源能源管理系统在制造现场的部署实录
开源·github·能源
繁星星繁2 小时前
Git 入门之道:从版本流转到基础操作
大数据·git·elasticsearch
fliter17 小时前
从零开始,自己造一个可执行文件压缩器
github
UTF_818 小时前
一次NSMutableAttributedString误用的思考
ios·面试·github
wh_xia_jun18 小时前
Git 分支合并操作备忘录
git
满天星830357719 小时前
【Git】原理及使用(三)(分支管理)
linux·git