I was playing about with my git repo and tried the GitHub pages feature but I'm not sure how to get rid of it. The check box on the repo admin is disabled.
Simply delete the gh-pages
remote branch:
$ git push origin :gh-pages
-
2I'm not sure this answer is complete, now that GitHub pages supports different ways to create GitHub pages (master, /docs, etc.). By disabling GitHub pages in the repo settings (and Ctrl-F5 in my browser), I see the pages are gone. – Fuhrmanator Jan 14 '20 at 15:29
-
How do you disable GitHub pages in the repo settings? I have removed the cname's etc from cloudflare that were pointing to github, and when i go to repo > settings > github pages section, it just says "Your GitHub Pages site is currently being built from the master branch". There doesn't seem to be anyway to
delete
ordisable
the github page, it still says "Your site is ready to be published at some-user-name.github.io/some-repo-name." PS TheSource
section saysBranch: master
and then/root
. – user1063287 Sep 4 '20 at 12:36 -
1Answer to my own question, not sure if best practise, but I changed
Source
dropdown value toNone
and clickedSave
and now it saysGitHub Pages is currently disabled. Select a source below to enable GitHub Pages for this repository.
So I guess that worked. – user1063287 Sep 4 '20 at 12:42