Skip to content

Instantly share code, notes, and snippets.

@alyssaq
Last active December 30, 2015 11:18
Show Gist options
  • Save alyssaq/7821236 to your computer and use it in GitHub Desktop.
Save alyssaq/7821236 to your computer and use it in GitHub Desktop.
Sync gh-pages with master
git push -f origin master:gh-pages

Automated way:
Add the following 2 lines to the [remote "origin"] section of .git/config:

push = +refs/heads/master:refs/heads/gh-pages
push = +refs/heads/master:refs/heads/master

Now when you do:
> git push origin
It'll push to master and gh-pages :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment