Do GitHub Pages repositories have to be public? - github

Do GitHub Pages repositories have to be public, or on a private one is possible?

Do GitHub Pages repositories have to be public, or on a private one is
possible?
It is possible to use GitHub Pages with a private repository.
GitHub Pages is available in public repositories with GitHub Free and
GitHub Free for organizations, and in public and private repositories
with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub
Enterprise Server. For more information, see "GitHub's products."
That is from https://docs.github.com/en/pages/getting-started-with-github-pages/about-github-pages.

Related

What happened to the GitHub Wikis when I turned my repo to Private?

I used to have a public GitHub repo with a wiki section filled with my project content.
Then I turned the repo from public to private.
Since there I do not have a Premium GitHub account, I cannot have a GitHub repo with a private wiki.
But what happened to the wiki I had when the repo was public?
I've read through docs at:
https://docs.github.com/en/github-ae#latest/communities/documenting-your-project-with-wikis/changing-access-permissions-for-wikis
https://docs.github.com/en/communities/documenting-your-project-with-wikis/about-wikis
Since you do not have a Premium GitHub account, you would not have the option to make a private repository with a wiki. In this case, it is likely that the wiki associated with the repository is not accessible when you changed the repository from public to private, what happens if you change the samething back to public, do you see the wiki again? if so then its by design, as soon as you turn private you dont have access unless you upgrade to premium I think
Wiki is hidden is when it goes private. Wiki is restored when you switch back to public.

Can I give different permissions in a private git repository?

I recently created a private git repository for a project with my friends but I don't want all of them to be collaborators. Can I give some of them the ability to only create pull requests and not merge them?
You could have used protected branches, but they are only available with private repositories for GitHub pro, not GitHub free.
One workaround is simply to create a second private repository for your friends: thy can push to it, and make pull requests to your private repository from there.

Can I add someone that have not paid version of GitHub account to my private repository

I do not have premium account of gitHub, and I want to know If I have private repository and someone do not have paid version of gitHub account, can I let him to contribute with me on private repository, and all of commit and change that done by that public account remain private for my project.
Thanks.
Yes you should be able to add a collaborator to a private repo, GitHub provides steps. Private repos on GitHub require a paid per month subscription. A non paying member should be able to be added to a private repository.

Contributor commits public of a private Github repo

Is there a way to have each contributor to a private repo have their commits be public on their github account, while still having the Github repo private?
The idea is to demonstrate contributor contribution to private repos, without revealing folder structure / code of the repo itself.

What happens if I add a collaborator to a private GitHub project who does not have a private plan?

I am curious if I can add a collaborator for just watching my project without giving him the rights to make it public, yet.
So, the current situation would be:
- I created a private GitHub repo that I don't want to have public yet
- I have a colleague who does not have a paid GitHub account
- I want to add this colleague as "watcher" only without exposing the project to the public yet
Would that work?
Assuming you trust your collaborator to not clone the repo and post it publically, yes you can add them as a collaborator to see the private repo.
From Github's docs: "All collaborators must have GitHub accounts. It's easy to sign up, and even accounts on the free plan can collaborate on private repositories"