Skip to content

Instantly share code, notes, and snippets.

@pathikrit
Created June 28, 2013 17:50
Show Gist options
  • Save pathikrit/5886624 to your computer and use it in GitHub Desktop.
Save pathikrit/5886624 to your computer and use it in GitHub Desktop.
git: keep gh-pages in sync with master branch
git checkout gh-pages; git merge -s subtree master; git push origin master gh-pages; git checkout master;
@cassidoo
Copy link

As a noob, how would you do this to make gh-pages in sync with master?

@pathikrit
Copy link
Author

I think the old title was a misnomer - this does keep gh-pages in sync with master...

@BigBlueHat
Copy link

@BigBlueHat
Copy link

Thanks for sharing, though! 😄

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