git Bitbucket 团队/组织?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10697136/
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-19 06:57:08  来源:igfitidea点击:

Bitbucket teams/organizations?

gitbitbucket

提问by frigg

We're 5 people working on the same projects and have several GIT-repositories in Bitbucket. Each user has their own Bitbucket account. I'm looking for the best-practice approach to having some sort of team or organization feature so that we can all work on the same repositories? As a use case, when I clone a repository it's not possible for other users to push to the same repository. I hope there's some way of solving this without having everyone use the same user account.

我们有 5 个人在从事相同的项目,并且在 Bitbucket 中有几个 GIT 存储库。每个用户都有自己的 Bitbucket 账户。我正在寻找具有某种团队或组织功能的最佳实践方法,以便我们都可以在同一个存储库上工作?作为一个用例,当我克隆一个存储库时,其他用户不可能推送到同一个存储库。我希望有一些方法可以解决这个问题,而不必让每个人都使用相同的用户帐户。

I hope this was properly explained.

我希望这得到了正确的解释。

Many thanks!

非常感谢!

回答by Legion

Bitbucket just deployed their Teams feature, similar to GitHub's organizations.

Bitbucket刚刚部署了他们的 Teams 功能,类似于 GitHub 的组织。

This allows you to administer a group account without having to logout from your account and login to it.

这允许您管理组帐户,而无需从您的帐户注销并登录。

回答by VonC

Update May, 30th 2012: as Legionmentions in his answer, Team Up with Bitbucketdescribes the Bitbucket Teams, in order to create a shared account.

2012 年 5 月 30 日更新:正如Legion他的回答中提到的,Team Up with Bitbucket描述了 Bitbucket Teams,以便创建一个共享帐户



Original answer (May, 22sd 2012)

原始答案(2012 年 5 月 22 日)

With Bitbucket permissions, you can grant write access to other users for each of your repositories.

使用Bitbucket 权限,您可以向其他用户授予对您的每个存储库的写访问权限。

The user that creates a repo is known as its owner.
Only an owner can delete a repo. You can create unlimited Bitbucket public or private repositories.

  • A public repository is visible to all bitbucket users.
  • A private repository is visible only to its owner and users that owner gives permissions to. This means an unauthorized user cannot clone or view the contents of a private repo even if they know the repo's URL.

Repository owners can grant other users explicit access to the repository.
An owner can allow 5, 10, 25, 50, or an unlimited number of users access to repositories under his or her control.
The owner always counts as one user.
The owner configures the permissions associated with each user with access. bitbucket supports the following permission levels:

  • readView the repository contents. All public repositories grant all bitbucket users read permissions automatically.
  • writeContribute to the repository by pushing changes directly from a repository on a local machine.
  • adminDo everything a repository owner can do, except delete the repository. This means administrators can:
    • Change repository settings.
    • Add, change, and remove user permissions.
    • Give other users administrator access.

创建存储库的用户称为其所有者。
只有所有者才能删除回购。您可以创建无限的 Bitbucket 公共或私有存储库。

  • 所有 bitbucket 用户都可以看到公共存储库。
  • 私有存储库仅对其所有者和所有者授予权限的用户可见。这意味着未经授权的用户即使知道存储库的 URL,也无法克隆或查看私有存储库的内容。

存储库所有者可以授予其他用户对存储库的显式访问权限。
所有者可以允许 5、10、25、50 或无限数量的用户访问他或她控制的存储库。
所有者始终计为一个用户。
所有者配置与每个具有访问权限的用户关联的权限。bitbucket 支持以下权限级别:

  • 阅读查看存储库内容。所有公共存储库自动授予所有 bitbucket 用户读取权限。
  • 通过直接从本地机器上的存储库推送更改来为存储库贡献。
  • admin执行存储库所有者可以执行的所有操作,但删除存储库除外。这意味着管理员可以:
    • 更改存储库设置。
    • 添加、更改和删除用户权限。
    • 授予其他用户管理员访问权限。