git Git如何让人们推送需要组织者合并的访问权限?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14969281/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 15:32:52  来源:igfitidea点击:

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

gitgithub

提问by rasen58

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/projectand be able to push to it automatically. So how would I do that?

我的项目有很多人,我想给他们所有的推送和拉取访问权限,因为现在,他们分叉了项目,当他们进行更改时,他们必须推送到他们的分叉并向我发送拉取请求。相反,我希望他们能够克隆主项目myusername/project并能够自动推送到它。那我该怎么做呢?

回答by William Seiti Mizuta

  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 Repositoriestab, 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.
  1. 询问您要添加为协作者的人员的用户名。如果他们没有,他们可以注册 GitHub
  2. 在任何页面的右上角,单击您的用户名。
  3. 在您的个人资料页面上,单击存储库选项卡,然后单击您的存储库名称。
  4. 在存储库的右侧边栏中,单击Settings
  5. 单击“协作者”选项卡。
  6. 开始输入协作者的用户名。
  7. 从下拉菜单中选择用户。
  8. 单击添加