Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Why do my workspace repositories reference my account?

spryce
Contributor
September 8, 2020

Apologies legends but I've wasted too much time looking into this and can't find an answer so clearly I'm doing something wrong.

My company is moving to Jira from a hosted Redmine provider who also hosts our repositories. Prior to that we hosted our own git server. I am currently in the process of moving all of our repositories to BitBucket.

After cloning or creating a new repo the git url references my user account.

e.g.

git clone https://my-name@bitbucket.org/workspace-name/repo-name.git

Looking at the URL format I think I can see the problem but I'm struggling to accept the conclusion. My tumble down the rabbit hole tells me that if I leave the company:

  • Each and every repo needs to be transferred one by one to another team member.
  • Every other team member then needs to update their locals.
  • This would also happen when any other developer that created a repo leaves the company

Is this correct? 

Surely they can be assigned to / owned by the Organisation we set up in Jira? 

 

Man I hope I'm doing something wrong. 

Thanks.

2 answers

1 accepted

1 vote
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 11, 2020

Hello,

When you clone (or pull from/push to) a repo it is possible to use either HTTPS or SSH protocol.

When you use HTTPS you authenticate with username + password. The clone URL that you get from Bitbucket UI includes the username of the account your are logged in with, this way you won't have to enter your username for authentication every time you clone/pull from/push to the repo.

As you correctly noticed, when a different user logs in with their account, they'll get a clone URL that includes their username.

Regarding ownership of the workspace, if you leave the company you can assign a new administrator from the workspace's Settings > User groups > Open the Administrators user group and add a new admin there. The new admin will be able to remove your account from the admins once you leave the company.

I hope this helps to clarify things. Please feel free to let me know if you have any other questions!

Kind regards,
Theodora

spryce
Contributor
September 11, 2020

Perfect. Many thanks.

Like Theodora Boudale likes this
0 votes
spryce
Contributor
September 8, 2020

Ok... Some clarity on the URL. I set up an account for another user and we logged in to check. His repo URL shows his username instead:

git clone https://other-developer@bitbucket.org/workspace-name/repo-name.git

 

I think I understand what is happening in the background now. He gets access to the repo through the workspace membership. Sweet.

 

I'm still unsure about the repos that belong to a workspace then. What is the procedure if I leave?
I simply nominate a new administrator?

Cheers.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events