How to give permission to other users to upload content to my project on Github

Asked

Viewed 9,654 times

7

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

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

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

  • "upar"?! " upasse"?! "upar"??

3 answers

10


Are you sure you want to do this? It is usually not suitable unless very large projects need several people managing (collaborating with) it. Small ones should not have multiple repository administrators, otherwise it becomes zone.

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

If you need a lot of people messing around, maybe you have a lot of repositories in one, and you should probably 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 she makes a branch and at a certain point asks the repository administrator/owner to accept the changes it has 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 on as an administrator, which doesn’t mean you don’t have to do PR, you can follow what you send to documentation:

Settings -> Colaboradors -> and there go in the box with Add Collaborator.

GitHub Settings add collaborator

See more.

5

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

3

When Voce creates, there in Setting has an option that Voce only allows the collaborators you added. So in collaborators you add who can perform the commits and push. I left the image to better view.

inserir a descrição da imagem aqui

Browser other questions tagged

You are not signed in. Login or sign up in order to post.