Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I manage users on Bitbucket

Tags:

git

bitbucket

I have been reading the bitbucket documentation and I am still confused about how to manage users well on my repo.

I want to give some developers the ability to pull and push to certain branches but not others, i.e. they can pull and push to a developer-master branch, but the final merges to the live master branch is something that only an admin can do.

In addition to this, I would love for this to require their own individual passwords, but not a password that gives them access to the entire repository. Right now a push requires only one password for the entire repository, which also gives them admin access to the entire bitbucket repository.

I did read the documentation but am still unclear on how to do this effectively. Help! :)

like image 406
Nicholas Finch Avatar asked Jul 31 '13 06:07

Nicholas Finch


Video Answer


1 Answers

Go to settings of the repo and choose 'Branch Management'.

Here you can give write access to specific branches to any users or groups you want. All of the rest branches will have write access from all of the users and groups (who have write access in general).

Take the example of my repo named bqotd.

I have four branches in this repo: htmls, design, docs and master. I wanted to limit write access of our front-end developer to htmls branch only so I had to do this:

bitbucket screenshot

I had to give write access to everyday except FED to all of the branches other than htmls branch.

like image 134
Owaeis N. Avatar answered Sep 23 '22 19:09

Owaeis N.