-
Notifications
You must be signed in to change notification settings - Fork 45
Keeping gh pages fresh
Richard Schneider edited this page Feb 22, 2015
·
5 revisions
As per github requirements, the project's web site is on the gh-pages
branch. One issue we have is that the CardsJS.css
and CardsJS.min
are needed by the web site and thus must be in two branches. How do we keep the gh-pages
branch in-sync with master
?
As Nicolas Gallagher has blogged, we can use git checkout
to copy a file from one branch to another.
# Assuming current branch is gh-pages
git checkout master -- cardjs.css
git checkout master -- cardjs.js
git commit -m "Update cardjs from master"