问题
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?
回答1:
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.
回答2:
- (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.
回答3:
Simply go to admin/access endpoint.
eg.
https://bitbucket.org/YOU_USERNAME/YOUR_PROJECT/admin/access
回答4:
I added users to my repository by navigating to "settings->Repository permissions".
回答5:
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.
来源:https://stackoverflow.com/questions/18824104/how-to-share-a-bit-bucket-repository-with-another-user