Can I give read-only access to a private repo (from a developer account)?

+1 read-only access - this is a useful, simple feature which would clearly be useful to many people.

+1 for read-only private repos. Is there another way to share code with a potential employer that cannot be posted publicly, edited or commented on? As a student most of my portfolio consists of solves for online coursework and CodeWars katas that we are not allowed to share publicly.

UPDATE: this workaround using nbviewer and secret github gists partially meets this requirement:

So much time has passed, and so many users have expressed interest, but it seems this is still not an option. Not being able to share repositories with read-only access makes GitHub significantly less valuable. Would love to see this feature soon! (Would also love to see if there’s some place where users / community members can vote on suggested features.)

+1 for read-only access to a private repo. You know it makes sense.

+1 for read-only access.

1 Like

+1 definitely!

But I would like some options for that feature, like allow viewing only on github and no download of files or cloning/forking.

1 Like

++++++ 1000000 get this feature out here!!!

1 Like

+1 for read-only access.

1 Like

+1 I too want to add my name to the long list of users who want this feature to be added.

1 Like

+1 for read only access pretttttty please!

1 Like

+1 Would be nice if we got an update from the GitHub folks about this, and what the roadblock is for it not being implemented.

1 Like

It seemed to me that this is a totally basic functionality.
I can’t figure out that does not exist yet, moreover after several years and dozen of requests !
What’s wrong guys ?
Can’t realize the use cases for this feature ?
Mine, as already told numerous times in this thread, is to show some of my work to prospective employers.
Is’n’t this a realistic demand ?

3 Likes

+1 for this feature - seems like a great idea w/ lots of ppl asking for it

1 Like

+1 x 1000. I’m trying to use GitHub as a central repository for code that needs to be run at customer locations. It would be great to be able to automatically update/download the code and extras with a built in read only token.

1 Like

I am just getting started with GitHub and I am trying to give some work to a contracter. How am I supposed to stop them from being able to push new branches into my repository?

The flow should that I give them read access to my private repository, they fork it, they work on it and make branches on their own repo, then they PR into my repo.

5 Likes

I’m not happy I paid for a sub-par product. Bitbucket has these features out of the box. This is just garbage by Github.

2 Likes

I have a client whose lead developer maintains code in a GitHub private repo. But the developer is unwilling to give me write access to the repo. So he sends me a ZIP file of the project, I send changes back in another ZIP file, then the developer manually merges the changes in. What a terrible workflow!

I wanted to demonstrate that I can simply fork the repo with a read-only access and open pull requests to submit the code changes. But apparently this is only possible in public repos. @Microsoft @GitHub How is this not an obvious basic requirement of your money-making product of hosting private repos?

This should be extremely simple to imagine: Add a strictly-read-only collaborator. The collaborator forks the repo to his account and works off of it. The fork is also private, but it is visible to all approved collaborators of the project. Other collaborators can fork the fork too. Everything stays within a shielded bubble of a “private network space”, similar to a corporate intranet system. If a collaborator is removed, his fork will no longer be accessible. His only option will be to delete the fork or keep it around but with nothing visible to him (in case the client grants him access again). It will still be visible to other active collaborators, and if deleted the fork head changes to the parent repo.

I’m sure this is a standard requirement in organizations. This shouldn’t still be an open request!

2 Likes

+1
Seriously this is an extremely needed feature, and I 99% do open source.

1 Like

Hey, I’m trying to use Github as a place to keep my work and show potential employers. Would love to still have the ability to make it private and just give people access to view.

1 Like

I’m trying to use Github as a place to keep my work and show potential employers. Would love to still have the ability to make it private and just give people access to view.

2 Likes