Skip to content

Instantly share code, notes, and snippets.

@francislewis
Created March 4, 2015 20:20
Show Gist options
  • Save francislewis/6ec72c5cf036f96ad603 to your computer and use it in GitHub Desktop.
Save francislewis/6ec72c5cf036f96ad603 to your computer and use it in GitHub Desktop.
How to keep gh-pages branch up to date with master
git checkout gh-pages // go to the gh-pages branch
git rebase master // bring gh-pages up to date with master
git push origin gh-pages // commit the changes
git checkout master // return to the master branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment