Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove github-pages from Environments in GitHub repository?

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.

enter image description here

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. enter image description here

like image 765
darthV Avatar asked Aug 03 '20 20:08

darthV


People also ask

How do I remove contents from my GitHub repository?

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.


Video Answer


2 Answers

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

like image 73
dylan Avatar answered Oct 18 '22 02:10

dylan


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)

like image 4
Amrit Raj Avatar answered Oct 18 '22 00:10

Amrit Raj