Git post-commit hook to keep master and gh-pages branch in sync :
In your Git repository create a file .git/hooks/post-commit and fill it with this:
#!/bin/sh
git checkout gh-pages
git rebase master
git checkout master
Git post-commit hook to keep master and gh-pages branch in sync :
In your Git repository create a file .git/hooks/post-commit and fill it with this:
#!/bin/sh
git checkout gh-pages
git rebase master
git checkout master