Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

GIT Access control

knorfield March 1, 2016

Although not a standard feature of GIT does Bitbucket provide an ability to restrict file/directory level access in a repository?

1 answer

0 votes
Tim Crall
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 1, 2016

No.

If you need different permissions on different chunks of code, you need to store them in different repos. 

knorfield March 1, 2016

Thanks for the response. Unfortunately we are unable to have separate repositories due to that causing us to mirror the branch structure between the two repos. After further research I believe that the only option would be through creating pre-commit hooks and doing some sort of user look up.

Tim Crall
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 3, 2016

Are you trying to block you untrusted users from reading the code or only from editing it?

You can put write restrictions on certain branches - such as master and develop - so that it has to go through an authorized person before their changes are merged onto those branches.

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events