Forums

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

Repository ize increased to 2.9 GB due to large historical files

Abinaya Ramaiah
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!
February 22, 2026

We are experiencing an issue with our Bitbucket Git repository where the repository size has grown to approximately 2.9 GB.

After running the following command locally:

git count-objects -vH

we observed that the large size is primarily due to Git historical objects (blobs) stored in the repository history, rather than files in the current working directory.

Observations:

Working directory size is normal.

Large files appear to have been committed in the past.

unable to Git clone 

CI/CD pipeline execution time has increased.

Repository performance is degraded.

Troubleshooting Performed:

Checked repository size using Git commands.

Identified large blobs in Git history.

Reviewed .gitignore to prevent future large file commits.

Assistance Required:

Best practice to safely reduce repository size.

Whether Bitbucket provides any server-side cleanup options.

Any risks or recommendations before rewriting history and force pushing.

This issue is impacting development workflow and pipeline performance. Kindly provide guidance on the recommended resolution.

 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events