How to allow other users to upload content to my project on GitHub

I am doing academic work and I created a project and wanted each member of the group to create a branch and upasse part of the code used in the work, but when someone tries to create a branch in the project and upar some code appears a permission error message

Git: remote: Permission to User/algorithms.git denied to user2

The question is, how do I allow other users add branchs and code to my project?

Author: Maniero, 2018-08-31

3 answers

Are you sure you want to do this? It is usually not fitting unless very large projects that need several people managing (collaborating with) it. In the small should not have multiple repository administrators, otherwise it turns zone.

In any case only one account can own the repository.

If you need multiple people moving around you might have multiple repositories in one, and the right thing to do should be to separate them. Github does not encourage the use of all-in-one repository.

The right thing is for people to do pull request , the famous PRs. Then it makes a branch and at some point asks the repository administrator/owner to accept the changes he made. This is the right process, and Github has the right tools for it. I suggest learning them.

But if you really want to put other people as administrator, which does not mean that you do not need to do PR, you can follow what the documentation :

Settings - > collaborators - > and there go in the box with add Collaborator.

GitHub Settings add collaborator

See More .

 10
Author: Maniero, 2020-08-04 18:50:31

Go to the repository, click Setting > Collaborator> Type user username, click Add Collaborator

 5
Author: Weslley Barbosa, 2018-08-31 18:04:47

When you create, there in setting has an option that you only allow the collaborators you have added.Then in collaborators you add who can perform the commits and push. I left the image to better visualize.

insert the description of the image here

 3
Author: Rafael Figueiredo, 2018-08-31 18:06:20