Skip to content

Instantly share code, notes, and snippets.

@troyscott
Created September 2, 2013 17:45
Show Gist options
  • Select an option

  • Save troyscott/6415411 to your computer and use it in GitHub Desktop.

Select an option

Save troyscott/6415411 to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
echo "git pull for jekyll_wp_blog"
cd /home/scottt/sync_websites/jekyll_wp_blog && git pull
jekyll build
cd .. && rsync -a -f"- .git/" -f"- README.md" -f"- js_cache/" -f"+ *" --delete jekyll_wp_blog/_site/ troyscott.github.io/
cd /home/scottt/sync_websites/troyscott.github.io && git status
echo "update troyscot.github.io website"
git add .
git commit -m 'automatic sit update'
git push -u origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment