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
Git how to give people push access that needs to be merged in by organizers?
提问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/project
and be able to push to it automatically.
So how would I do that?
我的项目有很多人,我想给他们所有的推送和拉取访问权限,因为现在,他们分叉了项目,当他们进行更改时,他们必须推送到他们的分叉并向我发送拉取请求。相反,我希望他们能够克隆主项目myusername/project
并能够自动推送到它。那我该怎么做呢?
回答by William Seiti Mizuta
- 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.
- In the top right corner of any page, click your username.
- On your profile page, click the Repositoriestab, then click the name of your repository.
- In your repository's right sidebar, click Settings.
- Click the "Collaborators" tab.
- Start typing the collaborator's username.
- Select the user from the drop-down menu.
- Click Add.
- 询问您要添加为协作者的人员的用户名。如果他们没有,他们可以注册 GitHub。
- 在任何页面的右上角,单击您的用户名。
- 在您的个人资料页面上,单击存储库选项卡,然后单击您的存储库名称。
- 在存储库的右侧边栏中,单击Settings。
- 单击“协作者”选项卡。
- 开始输入协作者的用户名。
- 从下拉菜单中选择用户。
- 单击添加。