Reputation: 18408
I know this isn't advised and there's a reason they're separated. But to my specific case gh-pages only have 1 page (index.html), and I want that 1 page to contain basically every file on master so it can be demonstrable. I was even considering using JSbin until I stumbled upon github pages.
So, is there any way to have just the master and still keep user.github.com/project
pointing to it?
Maybe using symbolic-ref?
Upvotes: 2
Views: 888
Reputation: 111
I'm not sure I understand your question; your gh-pages branch already has all the files from the master branch. If you're asking how to delete everything except index.html:
git clone [email protected]:cauerego/jsoneditor.git
cd jsoneditor
git checkout gh-pages
git rm -rf jsoneditor/ jsunit/ test/
git rm LICENSE README try.html
git commit
Upvotes: 1