Skip to content

Instantly share code, notes, and snippets.

@macloo
Forked from kleinmatic/Makefile
Created April 20, 2013 13:17
Show Gist options
  • Save macloo/5425947 to your computer and use it in GitHub Desktop.
Save macloo/5425947 to your computer and use it in GitHub Desktop.
# Put this in the root directory of your repository in a file called
# "Makefile". When you're ready to re/publish, just open terminal, cd
# to the directory containing your repo and type "make publish". As
# you can see, it's just a bunch of commands so you can easily add
# more steps to this workflow. Idea by Jeff Larson
publish:
git checkout gh-pages
git merge master
git push origin gh-pages
git checkout master
.PHONY: publish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment