Skip to content

Instantly share code, notes, and snippets.

@volkstrader
Created February 17, 2015 19:47
Show Gist options
  • Save volkstrader/400c13a11967ebcf728e to your computer and use it in GitHub Desktop.
Save volkstrader/400c13a11967ebcf728e to your computer and use it in GitHub Desktop.
Publish the contents from grunt dist to GitHub
rsync -a --delete \
--delete-excluded .git \
--delete-excluded .gitignore \
--delete-excluded publish.sh \
--delete-excluded CNAME \
~/sites/thesite/src/dist/ .
git add --all
git commit -m "published on `date`"
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment