Skip to content

Instantly share code, notes, and snippets.

@kennylugo
Last active December 28, 2015 17:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kennylugo/f45693b7063b98c771ff to your computer and use it in GitHub Desktop.
Save kennylugo/f45693b7063b98c771ff to your computer and use it in GitHub Desktop.
How to keep the MASTER & GH-PAGES branch in sync
1) git checkout master
2) git status
3) git commit -am "test"
4) git push origin master
5) git checkout gh-pages
6) git rebase master
7) git push origin gh-pages
8) git checkout master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment