Skip to content

Instantly share code, notes, and snippets.

@hydra1983
Created February 28, 2014 02:27
Show Gist options
  • Save hydra1983/9263967 to your computer and use it in GitHub Desktop.
Save hydra1983/9263967 to your computer and use it in GitHub Desktop.
Script to deploy blog generated by Hexo and source to same repository
#!/bin/bash
hexo clean
rm -rf .deploy
hexo deploy
git add -A .
git commit -m "Update sources"
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment