[Solved] Can I fork a forked repo to get access to it, where the original repo is private?


Can any of my friends fork and give me the access. Can I fork the repo, which they forked already?

Not using GitHub’s forking feature:

Private forks inherit the permissions structure of the upstream or parent repository. For example, if the upstream repository is private and gives read/write access to a team, then the same team will have read/write access to any forks of the private upstream repository. This helps owners of private repositories maintain control over their code.

I strongly advise you not to try to circumvent the access controls on the private repository you wish you access. At the very least it’s unethical and you may be breaking laws and contracts. It would be much better to request access and honour the answer you receive.

From a purely technical perspective there’s nothing stopping a person with a local clone from sharing it (though again this is very likely to break laws, contracts, or both). By doing so you’re not just putting yourself at risk, you’re putting your friend at risk too.

Just because something can be done doesn’t mean it should be done.

solved Can I fork a forked repo to get access to it, where the original repo is private?