SMGreenfield
SMGreenfield

Reputation: 1720

How to make private GitHub repo available to other organization team members?

New to GitHub, and I used Xcode to create a repo, add all the files, and push it to our organization's (paid) GitHub account.

The repo is "private", and I can see it listed as one of MY repositories. HOWEVER -- there doesn't seem to be a way to add the repo to the other members of the TEAM. The repo doesn't show as existing to the add repo to team command. The members of the team ARE all members of the organization.

I made the repo "private" because the option of "public" said it would be available to ANYONE. Didn't want to do that.

So -- do I need to do "Transfer Ownership" on this repo to move it to our organization?

If so, how should I have created the repo at the organization level to begin with?

Upvotes: 3

Views: 5498

Answers (2)

GrantB
GrantB

Reputation: 151

To move your private repo so that teams in your organization can access, do the following:

  1. Assume you have an organization set up such as 'FoobarCompany' with a team that includes the person owning the private repo
  2. From github.com//<repo_name>/settings#danger-zone click on 'Transfer'
  3. You will be prompted to enter the company name, and then (after security authorization step of typing in the repro name) be prompted for the teams that will have access from the company
  4. You will see the repro disappear from your user, but if you look at the company (github.com/FoobarCompany) you should see the repro

Pretty simple, but do check that you have the company name correct and you are not assigning the repro to the right organization

If you want to invite people outside of your organization, from your repository, go:

Settings/Manage Access and Invite a collaborator

Upvotes: 3

SMGreenfield
SMGreenfield

Reputation: 1720

For anyone coming across this in the future -- YES -- a "private" repo should be transferred to the organization if you expect to share it with members of your organization's team.

Upvotes: 1

Related Questions