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?
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.
See More .
Go to the repository, click Setting
> Collaborator
> Type user username, click Add Collaborator
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.