Private Repo and a Free Account

Hello, I am new to GitHub and awaiting my student pack confirmation. Until then, one of my group members created a private repository that he has given me access to. If I create a branch or fork, will those become visible to the public since my account is still a regular, free account? I cannot let these files become public since they may only be worked on by my group for the class. Any help you can give is appreciated.

Hello @mborl,

Welcome to GitHub! :slight_smile:

Yes, if you fork a private repository on an account that does not have a paid plan, the fork will remain private and will not count against your private repository quota. My understanding is that a branch of a private repo would also remain private, but I haven’t tested this out so can’t confirm this behaviour.

​If there’s anything else I can help you with, let me know; so happy to help further!

Kindest regards,
Matthew

2 Likes

Thanks! How can I verify if the branch I create is private or not?

A public fork will look like this

7957c7e5de71fac0545d015bd36a63ec

while a private fork will look similar to this:

where you can see it has a little locked icon and the word “Private” next to it.

Also, I checked your public GitHub profile and you don’t currently have any public repositories so if you have now created a branch of the existing private repository, it’s going to be private (otherwise it would show up as a public repository) :slight_smile:

​If there’s anything else I can help you with, let me know; so happy to help further!

2 Likes