How to give permission for other users to upload content to my project on GitHub

6

I'm doing an academic job 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, however when someone tries to create a branch in the project and upar some code will appear a permission error message

  

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

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

    
asked by anonymous 31.08.2018 / 19:48

3 answers

10

Are you sure you want to do this? It is usually not tailor-made unless very large projects that need multiple people administering (collaborating with) it. In small files, you should not have multiple repository administrators, otherwise it will be a zone.

Anyway, only one account can be the owner of the repository.

If you need multiple people tweaking maybe you have multiple repositories in one, and most certainly should be separating them. Github does not encourage the use of an all-in-one repository.

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

But if you really want to put other people as an administrator, which is not to say that you do not need to do PR, you can follow the documentation :

  

Settings - > Collaborators - > and go there with Add Collaborator.

See more .

    
31.08.2018 / 20:07
5

Go to the repository, click Setting > Collaborator > type user's username, click Add Collaborator

    
31.08.2018 / 20:04
3

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

    
31.08.2018 / 20:06