Search code examples
javalinuxgitgithubrepository

Private GitHub repository for reading anonymous user?


I am trying to share a private GitHub repository of a Java app with people who has not a GitHub account. When I add collabrator via email, it sends link to that mail but requires GitHub account to read shared repo.

So, is it possible to share repo with a person who has not GitHub account?


Solution

  • If they do not need the full history, but only the latest code, sending an archive (git archive or GitHub tarball) is enough.

    That is the equivalent of a git bundle limited to one commit.

    If they need to look at the history, and the bundle is not an option, then they need a GitHub account, as anonymous browsing is not available for a private repository.