The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

GIT Access control

knorfield
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
March 1, 2016

No.

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

knorfield
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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 Champions.
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.

 

TAGS
AUG Leaders

Atlassian Community Events