`

hexo 自动部署脚步

    博客分类:
  • ios
阅读更多
echo "===============start deploy==============="
hexo clean
hexo generate
cd public

git init
git add .
git commit -m "update "

git remote add origin https://github.com/xxx/xxx.github.io.git >>  /dev/null 2>&1
echo "### Pushing to Github..."
git push origin master -f
echo "### Done"
echo "===============end deploy================="

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics