Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git how to give people push access that needs to be merged in by organizers?

Tags:

git

github

My project has quite a few people and I want to give them all push & pull access because right now, they forked the project and when they make changes, they have to push to their fork and send me a pull request. Instead, I want them to be able to clone the main project at myusername/project and be able to push to it automatically. So how would I do that?

like image 733
rasen58 Avatar asked Feb 19 '13 23:02

rasen58


People also ask

Does git push do a merge?

Git push will copy all commits from current branch that are missing in destination branch (a38de, 893cf, 756ae) and move the pointers both in destination branch and remote tracking branch to the same commit in local branch. Note that it will not perform any merge.

How do I push someone else's code into my repository?

Run the git remote set-url --add --push origin git-repository-name command where git-repository-name is the URL and name of the Git repository where you want to host your code. This changes the push destination of origin to that Git repository.


1 Answers

  1. Ask for the username of the person you're adding as a collaborator. If they don't have one, they can sign up for GitHub.
  2. In the top right corner of any page, click your username.
  3. On your profile page, click the Repositories tab, then click the name of your repository.
  4. In your repository's right sidebar, click Settings.
  5. Click the "Collaborators" tab.
  6. Start typing the collaborator's username.
  7. Select the user from the drop-down menu.
  8. Click Add.
like image 70
William Seiti Mizuta Avatar answered Sep 21 '22 20:09

William Seiti Mizuta