Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sharing private git repo via access link

I have worked on a private project and would like to put it on my resume.

For that I am looking for a git service which allows me to share an access link to my repo, where anybody who has received that access link can read the contents of my repo without requiring the invited to have an account on the particular git web service and without me knowing any details about the consumer of the access link in advance.

It should basically work like a GoogleDrive or OneDrive share-via-link.

Ideally i should be able to set the expiration date of the access link and be able to generate different access links.

Now does such a Git web service exist? Currently I am using BitBucket, but it does not have this feature. I dont like the idea of putting my project on unrestricted public display.

Thanks for any advice! J.

like image 958
J4ni Avatar asked Mar 03 '19 23:03

J4ni


People also ask

Can collaborators access private repository?

Collaborators on a personal repository can pull (read) the contents of the repository and push (write) changes to the repository. Note: In a private repository, repository owners can only grant write access to collaborators. Collaborators can't have read-only access to repositories owned by a personal account.

Can people see private Git repos?

Private repositories are only accessible to you, people you explicitly share access with, and, for organization repositories, certain organization members.

Can you make a private GitHub repo public?

Changing a repository's visibilityOn GitHub.com, navigate to the main page of the repository. Under your repository name, click Settings. Under "Danger Zone", to the right of to "Change repository visibility", click Change visibility. Select a visibility.


2 Answers

This is:

  • not possible with GitHub (you would need to add a user as a collaborator of a private repo)
  • discussed, but not yet implemented on GitLab: issue 20549: "Share private project via URL" (since April 2016)

So you might need to use a third-party option (like the ones you mention, or GitFront -- from Serbia -- mentioned below,) to package/publish (and update) your repository, for any user to access it with a link. For example, publish it as a bundle (one file).

like image 148
VonC Avatar answered Sep 23 '22 19:09

VonC


You can use GitFront to share private git repositories.

It is a web application that allows you to import a repository and create a read-only version of it, which is sharable via link. The person receiving the link doesn't need to have an account to view the repository.

Disclosure: Affiliated with GitFront.

like image 36
GitFront Avatar answered Sep 22 '22 19:09

GitFront