git GitHub 添加用户以在 repo 上一起工作......?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9825268/
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
GitHub add users to work together on repo...?
提问by Joey
After searching numerous days I'm just going to ask that We are with 5 persons and we're going to develop 2 projects. One project is a JSP website (made in Netbeans) and one is a WPF end application made with C# and developed in Visual Studio 2010.
经过无数天的搜索,我只是要问我们有 5 个人,我们将开发 2 个项目。一个项目是一个 JSP 网站(在 Netbeans 中制作),一个是用 C# 制作并在 Visual Studio 2010 中开发的 WPF 终端应用程序。
The idea was basically, making 2 repository's on GitHub and add the other 4 persons to these repositories. But, how do I add them and let them work together on these projects?
这个想法基本上是,在 GitHub 上创建 2 个存储库,并将其他 4 个人添加到这些存储库中。但是,我如何添加它们并让它们在这些项目上协同工作?
Currently I have Git Gui working perfectly with my repository and it can pull and push the files, but with the other guys it isn't. Can you help us please?
目前,我让 Git Gui 与我的存储库完美配合,它可以拉取和推送文件,但对于其他人则不然。你能帮我们吗?
回答by Lvkz
A little bit late, but in the repository, go to settings, then look for collaborators, and then add the other persons working on the project.
有点晚了,但是在存储库中,转到设置,然后查找合作者,然后添加其他从事该项目的人员。
回答by Matt Gibson
If you own the repository with your personal GitHub account: Add the other github users as collaborators (repo->settings->collaborators), then they have push access and will be able to work with you.
如果您使用您的个人 GitHub 帐户拥有存储库:将其他 github 用户添加为合作者(repo->settings->collaborators),那么他们将拥有推送访问权限并能够与您合作。
If the repo is owned by an organisation (I assume you are a manager of the organisation): Make a team and manage who can push to projects like that (repo->settings->teams). You control access per-team, so you define a team that can pull, or push and pull, then add the users to it.
如果 repo 归一个组织所有(我假设您是该组织的经理):组建一个团队并管理谁可以推动这样的项目(repo->settings->teams)。您控制每个团队的访问权限,因此您可以定义一个可以拉动或推拉的团队,然后将用户添加到其中。