Details
-
Suggestion
-
Status: In Progress (View Workflow)
-
Resolution: Unresolved
Description
You can enable an experimental feature to trigger GC automatically next time you accidentally push a large commit and go over the Hard size limit.
Do this by clicking on your profile icon and selecting Labs, then enabling the feature "Delete dangling commits when over size limit". This only affects your personal login, meaning that auto GC will be triggered only on the repositories part of your personal workspace and it won't be triggered on the repositories part of any shared workspace. Tell your team in case they want to try it out too.
Next time you accidentally push large files to Bitbucket, follow the user guide to reset the branch to just before the large commit. When you force push that refs-only change, the Labs feature will automatically run GC to immediately remove the large commit.
This should bring your Bitbucket repo below the size limit, allowing you to push commits again without having to raise a support request. Anyone else using the same repo who has pulled the large commit will need to create a fresh clone.
Note that this won't work if your repo goes over 5GB. In that case your repo is put into read-only mode and you will need to request help from our support team at https://support.atlassian.com/contact/.
we need a process to initiate git gc runs on server repositories.
one of our repository grew to Hard size limit and it is read only for quite some time. We would need to bring attention of bitbucket team to near-the-limit repositories without getting tech support involved.
Attachments
Issue Links
- is duplicated by
-
BCLOUD-11610 Ability to limit file size in commit (BB-10101)
- Closed
-
BCLOUD-17162 Make it easier to remove files when hitting 2gb limit
- Closed
-
BCLOUD-17387 Improve options for managing repository size
- Closed
- is related to
-
BCLOUD-20322 The auto git-gc option should also run for the soft limit warnings at 2-4 GB
- Gathering Interest
- relates to
-
BCLOUD-17162 Make it easier to remove files when hitting 2gb limit
- Closed
-
BBS-181016 Loading...
-
BBS-181068 Loading...
-
BBS-181634 Loading...
-
BBS-183161 Loading...
-
BBS-184339 Loading...
-
BBS-184714 Loading...
- mentioned in
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...