I have a Java application in a private repository on GitHub and I would like to share it with someone who doesn't have an account. I didn't find any option on the site for this.
Is there a way to do this? Collaborators can be only GitHub users.
I have a Java application in a private repository on GitHub and I would like to share it with someone who doesn't have an account. I didn't find any option on the site for this.
Is there a way to do this? Collaborators can be only GitHub users.
There is no way to share private repository among non-Github users.
You need the Github account and be added as collaborator to the project.
You can use gitfront.io for this purpose. You can give users to read-only access to keep your secure
Use https://gitfront.io/. The steps to follow are:
Get Started
.git@github.com:your_username/repo_name.git
Repository URL
. Press Add
.Open repository Deploy keys on GitHub.
You can use read-only access token to share a private repository.
git clone https://<username>:<token>@github.com/<username>/<repo>.git
To generate a new token:
Go to Settings > Developer Settings > Personal access tokens > Fine-grained tokens > Generate new token.
Select the repositories you want to share under Repository access > Only select repositories.
Set the access level of the token to read-only in Permissions > Repository permissions > Contents > Access: read-only.
Finally, click on Generate token.