Share GitHub Private Repository with Link
Channel: Code Synergy
Date: 2022-02-10

GitHub does not provide any way to share private repository with anyone with a special sharable link, just like, we have in other services, such as, Google Docs, where we can share a document with anyone having a link.

In order to give access to GitHub private repository, we need to add GitHub users as collaborators. This feature is useful when we want team members to collaborate in a project. But there might be a situation where you want to showcase/share your code (or a repository) with anyone by providing a sharable link.

To submit an assignment as a student to your instructor, you can provide a sharable link of your private repository. Similarly, if you have applied for the job and they ask for your previous work, you can share the links of private repository, instead of adding them as a collaborator.

GitFront.io is a solution the pain-point of sharing the repo through a link. Where, you can add your repo to GitFront and provide deploy key in GitHub private repo. GitFront generates a sharable link.