简体   繁体   中英

merging github gh-pages into master

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 ?

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 git@github.com:cauerego/jsoneditor.git
cd jsoneditor
git checkout gh-pages
git rm -rf jsoneditor/ jsunit/ test/
git rm LICENSE README try.html
git commit

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM