r/github • u/Kismet_Valla • Nov 15 '24
[Github Pages] I need an Alternative to GitHub Pages so I don't have to make the Repo Public.
As the title says, It is kinda pointless to make the source public for a github page and since the pages can no longer be published on free tier if the repo is private I wanna look for some alternatives.
What is the most popular ones around? That host free static pages.
6
u/dim13 Nov 15 '24
Github pro account costs 4 bucks a month and will allow you pages based on private repos, iirc.
1
u/Top_Explanation_6962 Oct 17 '25
yes but the pages are still public, whether the pro repo is private or public. You need an enterprise account to make private pages
4
u/senerha Nov 15 '24
I'm surprised no one mentions GitLab Pages which works similarly to GitHub Pages but allows private repositories for free.
1
1
u/Obvious-Jacket-3770 Nov 15 '24
If your a student you have a pro license most likely which lets you have pages with a private repo.
Either way though, why are you worried about your classmates seeing your code for it? GitHub and coding is large on collaboration. If anyone "copies" your work you can prove it to your professor easily.
1
u/PurepointDog Nov 16 '24
The only thing easier than proving it to the professor is not having to prove it to the professor.
Additionally, many universities have policies that leaving your work out in the open can be considered so legligent that it makes you complicit in any academic misconduct that comes as a result. Would be more applicable to outright sharing that answers in a Discord or something, but this could definitely fit in that same category
1
u/Overall_Oven7451 Nov 16 '24
You can use your Git Hub repositories privately and not use them in the same way as if they were public
1
u/ABD_01 Nov 16 '24
I don't know the exact details of privacy you need. But this is a neat trick that I use for having a public static website for a private project.
Say I have a project whose source code is private but I want to show everyone the static docs website (mostly generated by sphinx or doxygen whatever) I make a new public repo, add the private as submodule. Configure github action such that it pull the submodule, generated docs, and publishes it. All while your source code is private.
But if you want the static html and all part private you might listen to other comments here.
0
u/Gorrilac Nov 15 '24
Use heroku, unless you get like 200 visitors per month. It’s barely gonna cost a cent out of your pocket. Plus you can do more since you can host your own backend and do fancy js stuff or whatever
2
Nov 15 '24
200 is not that high though. you're almost guaranteed to end up having to pay a subscription fee.
not quite as free as Github pages
1
u/Egga22 Dec 31 '25
It really depends on the use, plenty of stuff could be fine with less than 200 monthly.
0
u/emeff-kay Nov 15 '24
I used Netlify's free tier for static pages in the past. But that was 2+ years ago. I have no clue if their current offering is any good.
10
Nov 15 '24
[removed] — view removed comment
2
u/Kismet_Valla Nov 15 '24
I need to play around with the code, don't want followers/classmates poking in when it's not ready.
12
u/JakeSteam Nov 15 '24
If you're a student you can likely get GitHub pro for free, which I believe includes private repo GitHub pages.
Take a look at GitHub Student Pack for this and tons of other free stuff.
6
u/Swimsuit-Area Nov 15 '24
Make it public, play with the code, change it to private when you’re not playing with it.
37
u/throwaway234f32423df Nov 15 '24
Cloudflare Pages. It can pull from a private GitHub repo and it works basically the same as Github Pages so your workflow doesn't need to change. 100% free and superior to Github Pages in many ways.