Нужно скопировать файл foo из master
в gh-pages
.
git checkout gh-pages
git checkout master foo
git commit -m 'Add file foo to gh-pages.
Соответственно для копипрования всей ветки
git checkout master ./
Ссылки:
http://stackoverflow.com/questions/17416691/how-can-i-copy-files-from-a-branch-to-another-using-git