Github pages isn't working after switching from public to private and then back to public #23647
-
I am using the free plan of github. After hearing the unlimited private repositories for free plans news, I thought I could make my personal website repo private. So I made the repo private. But then I noticed, github pages to work under private repo, you have to subscribe to github pro plans. So I revert back to public. But now my site isn’t working. How can I re-enable my site? update: My site is working because as I didn’t get any solution, I have deleted my old repository and recreated it. Still I am waiting for a good solution. |
Beta Was this translation helpful? Give feedback.
Replies: 19 comments 7 replies
-
Unfortunately, we can’t make a guess as to what might have gotten wedged that was preventing this from working. If anyone else runs into this, please reach out to GitHub Support at https://github.com/contact so they can take a deeper look at what the issue might be. NB: Response edited December 2020 to reflect changes in GitHub’s support channels. |
Beta Was this translation helpful? Give feedback.
-
This happened to me as well - I’ve also emailed support in hopes of a solution. |
Beta Was this translation helpful? Give feedback.
-
This problem seems to resolve itself if you push any commit to your pages branch. |
Beta Was this translation helpful? Give feedback.
-
What about master branch? I tried to make my repo public and did a push to master branch (only branch I have) |
Beta Was this translation helpful? Give feedback.
-
It did work for me after pushing to master branch |
Beta Was this translation helpful? Give feedback.
-
Any thoughts on how I can remedy this situation? I already sent an email to support. I turned the repo to private, realized the page went 404. Made the repo public again and the 404 remains. It looks like the UI settings where GitHub pages (page) use to be has changed considerably. I don’t see any option to republish the page and the option to redirect my custom domain url. |
Beta Was this translation helpful? Give feedback.
-
Plus one. Were you able to fix this issue? My page is down. I did the exact same thing as you. Also, I don’t see an option to republish and add a redirect under settings no more. |
Beta Was this translation helpful? Give feedback.
-
Thanks Bro. It also worked for me after pushing to the main branch. :slight_smile: |
Beta Was this translation helpful? Give feedback.
-
I have solved after pushing a commit to master branch |
Beta Was this translation helpful? Give feedback.
-
Dude You free me from tensed… Thanks Man :slight_smile: |
Beta Was this translation helpful? Give feedback.
-
Hi friends, Updating this thread to share a solution that has worked for some, please try mind pushing a commit to your repository to trigger a build, this should take care of the issue. I hope this helps!- |
Beta Was this translation helpful? Give feedback.
-
Hi The same exact thing happened to me too today. I initially thought making a personal/user github page repo would enable my pages public even though repo can be set to private.Looks like it is not so and is only availble for Github Pro So now I have set back to Public again and "Your page is published at “URL” is missing rom the section in options under settings Pls correct this Github |
Beta Was this translation helpful? Give feedback.
-
This happened to me too. Here’s how I fixed it. 1 Go to the ‘repository page’ 2 Click on ‘settings’ 3 Scroll down to ‘Github Pages’ 4 Click on the dropdown for ‘Source’ 5 Select ‘master branch’ Then refresh your website and it should work. |
Beta Was this translation helpful? Give feedback.
-
Going to add to this. I tried re-committing to the master and it didn’t work. However, it did after removing all of my site files, committing, and then adding them back into the repo before committing again. |
Beta Was this translation helpful? Give feedback.
-
I got the same problem. The solution I tried is to rename the repo, and then rename back. Fortunately, it worked like a charm. |
Beta Was this translation helpful? Give feedback.
-
I did this and then I did the rename and rename back. Now it’s working. |
Beta Was this translation helpful? Give feedback.
-
Bro I only have master branch. I created a random file and committed . Nothing happened even then. Edit : It worked now lol |
Beta Was this translation helpful? Give feedback.
-
This worked for me. thank you |
Beta Was this translation helpful? Give feedback.
-
This hasn’t been the case for me. My last commit is 18 minutes ago on the master branch. https://github.com/arcman7/arcman7.github.io EDIT: While writing this reply I tried committing directly on the remote repository via editing my readme.md file. This seems to have worked as opposed to pushing commits to the remote repository. |
Beta Was this translation helpful? Give feedback.
Hi friends,
Updating this thread to share a solution that has worked for some, please try mind pushing a commit to your repository to trigger a build, this should take care of the issue.
I hope this helps!-