git 如何与另一个用户共享一个比特桶存储库?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18824104/
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
How to share a bit bucket repository with another user?
提问by Afraz Ali
I am using Bit bucket and I have a friend that I would like to share my repository with. I am using the free individual account. There seems to be an option of creating a team in bit bucket but it says it will convert my account from individual to team account. I do not want that. How can I give another user access to this repository?
我正在使用 Bit 存储桶,并且我有一个朋友想与其共享我的存储库。我正在使用免费的个人帐户。似乎可以选择在比特桶中创建团队,但它说它将我的帐户从个人帐户转换为团队帐户。我不要那个。如何授予其他用户访问此存储库的权限?
回答by Ashok
There is an option of share link, if you click on that, a popup will be appeared on that you can give your friends username or his email to share the repository. This popup says something like "Existing users are granted access to this repository immediately. New users will be sent an invitation."
有一个共享链接的选项,如果你点击它,会出现一个弹出窗口,你可以给你的朋友用户名或他的电子邮件来共享存储库。此弹出窗口显示类似“现有用户立即被授予访问此存储库的权限。将向新用户发送邀请。”
UPDATE: Looks like the interface is slightly changed. You can share a repo via Settings / Access management.
更新:看起来界面略有变化。您可以通过设置/访问管理共享一个仓库。
回答by poke
- (Optional first step) Have your friend register an own account on Bitbucket.
- Visit your repository on the Bitbucket website.
- On the “Overview” page, on the right side, click “Invite users to this repo”.
- If your friend register in step 1, enter his user name, otherwise just enter the email and he will get a mail with a link to register.
- Afterwards, your friend will have access to your repository using his own Bitbucket credentials.
- (可选的第一步)让您的朋友在 Bitbucket 上注册一个自己的帐户。
- 在 Bitbucket 网站上访问您的存储库。
- 在“概览”页面的右侧,单击“邀请用户加入此存储库”。
- 如果您的朋友在步骤 1 中注册,请输入他的用户名,否则只需输入电子邮件,他就会收到一封带有注册链接的邮件。
- 之后,您的朋友将可以使用他自己的 Bitbucket 凭据访问您的存储库。
回答by prayagupd
Simply go to admin/access
endpoint.
只需转到admin/access
端点。
eg.
例如。
https://bitbucket.org/YOU_USERNAME/YOUR_PROJECT/admin/access
https://bitbucket.org/YOU_USERNAME/YOUR_PROJECT/admin/access
回答by imkhan
I added users to my repository by navigating to "settings->Repository permissions".
我通过导航到“设置->存储库权限”将用户添加到我的存储库。
回答by karakays
You can grant your friend read-only access through ssh. In other words, he/she can clone your repository but cannot push to the remote repository. For this purpose, you need to add its public key to access keys.
您可以通过 ssh 授予您的朋友只读访问权限。换句话说,他/她可以克隆您的存储库,但不能推送到远程存储库。为此,您需要将其公钥添加到访问密钥中。