Working with private repo in a team environment

edmundcwm August 28, 2019

Hello all!

 

I'm a little confused when it comes to working with private repository in a team environment.

 

Scenario:

A private repo is created in my company's bitbucket account. As a team member, I'm supposed to clone it to my local and work from there. But when I try to do git clone (using https), I was asked to enter the password of the company's bitbucket account. 


It seems strange that the company's bitbucket account password should be made known to all team members in order for them to clone. 

 

Or is the recommended way to clone via SSH? If so, does it mean that all team members have to generate a SSH key and pass it into the repo in order to gain access?

 

Appreciate any input!

2 comments

DPKJ
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 28, 2019

@edmundcwm

You have to add team/users account to your repository so each user can access repository by there own credentials.

Read this KB article it will resolve all your doubts - https://confluence.atlassian.com/bitbucket/create-and-grant-access-to-team-repositories-665225545.html

Like edmundcwm likes this
edmundcwm August 29, 2019

Thanks for the information! I'm beginning to understand how the access part works now!

edmundcwm August 29, 2019

Thanks for the info! I'm beginning to understand how access works now!

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events