Mohsen
Mohsen

Reputation: 65785

Add another user to project owners in Github

How can I add another user to project such that the project shows under his name in his Github account too? I don't want a fork. Two users should host same project in their accounts and this should allow both users to collaborate in the project.

Upvotes: 51

Views: 98045

Answers (5)

atineoSE
atineoSE

Reputation: 4107

This can be managed for repos that are within an organization. From within such repo, go to Settings -> Collaborators and teams, then choose "Add people". Then choose the desired role, in this case "admin".

enter image description here

Note that repos that are not within an organization don't have these options. In that case, you can go to Settings -> Collaborators, then choose "Add people". In that case, you can only add them as collaborators, not admins. enter image description here

Upvotes: 1

jamapag
jamapag

Reputation: 9318

Go to repository administration, then to Collaborators section and write Github user name in field.

Repositories-> Click on repository you want to add collaborators-> Click on Settings -> on your left, click on 'Collaborators', which is right below 'Options' -> search for the person you want to add -> finally click on 'Add Collaborator'

Upvotes: 15

Asher
Asher

Reputation: 2774

To add another user to a github.com repository:

  • Select Settings->Collaborators under the online repository directory.

Here is an example:

enter image description here

Upvotes: 2

manojlds
manojlds

Reputation: 301077

You can only add collaborators to your repository. It cannot be "co-owned".

But when someone is added as collaborator to a repo, that repo will be listed in the Your Repositories section ( but the username will be the owner username only)

The only way for doing what you want is to fork the repo and collaborate through pull requests.

Note that you can create an organization ( https://github.com/account/organizations/new ) and achieve a bit of what you want.

Upvotes: 59

Alexander Gladysh
Alexander Gladysh

Reputation: 41383

As it has been said, normally you can only add collaborators to your repository. They would be able to push, but they would not be visible as owners.

If publicity is what you want, create a separate GitHub Organization for your project, and add your partner as co-owner.

Here is an example of how it might look like: https://github.com/lua-nucleo/

Upvotes: 11

Related Questions