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

limit commit size for all user

Jorge Uztariz December 3, 2019

i need to limit the commit size to 50mb for all users of a branch or repository so that they do not upload inesesary files. I have to do it in a general way since there are more than 250 users in several countries

1 answer

1 accepted

2 votes
Answer accepted
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 3, 2019

Hi @Jorge Uztariz,

Welcome to Atlassian Community.

Bitbucket Cloud does not have hooks, but you can use Git hooks to limit the commit size. Take a look at these two blog posts on how to share hooks with your team:

https://www.darrenlester.com/blog/including-hooks-in-a-git-repository

https://www.viget.com/articles/two-ways-to-share-git-hooks-with-your-team/

The only drawback is that you would have to make sure each user that access your repository installs those hooks. There is a request to have hooks added to Bitbucket Cloud, BCLOUD-10471. Vote on it to let Atlassian know that you are also interested in seeing this implemented.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events