I have created a project page for a repository in GitHub and later I deleted the gh-pages branch to delete the page. But now I see github-pages Active under the Environments section in the home page of my repository.
I have no idea what that section is and how to remove it. When I click on the Environments, I am taken to the page with following; View deployment button takes me to a broken 404 github page since I have deleted the page I created.
In git, you can't delete the content of a branch. All you can do is to push a commit that removes all your files. If you want to start over from a clean repository, you have to delete the current one a create a new one with the same name for example.
Check in Settings>Environments Or https://github.com/user/repo-name/settings/environments
Where "user" should be your username and "repo-name" the repo name
It will show a icon to delete github-pages
If you are using Chrome then try to clear browsing data for the last 24 hours and restart. This worked for me.
(Forced to post this as an answer instead of a comment due to lacking reputation points)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With