Skip to content

Instantly share code, notes, and snippets.

@AmrEldib
Last active August 29, 2015 14:07
Show Gist options
  • Save AmrEldib/ca2298eecf31a5cfb4e4 to your computer and use it in GitHub Desktop.
Save AmrEldib/ca2298eecf31a5cfb4e4 to your computer and use it in GitHub Desktop.
Easily keep gh-pages in sync with master
# go to the gh-pages branch
git checkout gh-pages
# bring gh-pages up to date with master
git rebase master
# commit the changes
git push origin gh-pages
# return to the master branch
git checkout master
# Source: http://lea.verou.me/2011/10/easily-keep-gh-pages-in-sync-with-master/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment