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

repo size

Srikanth Komanduru
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!
May 21, 2024

From Repository settings --->Retrive Size i see 1.27GB and when i pull the code and do du  -sh i get another number which is correct. could you please help me and can you help me from where Retrive size is getting.

1 answer

1 accepted

1 vote
Answer accepted
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 23, 2024

Hello @Srikanth Komanduru ,

and welcome to the community!

To compare the size of your local clone with Bitbucket you can use the following command instead : 

git count-objects -vH

This will output the size pack, which is the compressed version of the repository that is stored by Git.

However, you may still see differences when comparing the local repo size with the remote size, and they are expected as Bitbucket also has to store additional metadata related to your repository. 

If you see a big discrepancy in the size, there are some scenarios that can explain that:

  • Large files pushed to the repo : if you have pushed large files to the repo in the past, and have now removed them from the history using git reset or a tool like BFG, it may be the case that the garbage collection that happens from time to time hasn't yet been run in your repo. In this case, we from support can help trigger the garbage collection manually if you share the masked workspace/repository_name with us
  • Large files that were part of pull requests : if after the GC the repository size does not reduce, it may be the case that commits where those large files were originally pushed were part of pull request, which protects these commits from being removed by GC (learn more on Repository size remains the same after deleting large files and running garbage collection (GC) on the remote). In such a scenario, the solution would be to delete the pull request, so the commits in question could be garbage collected.

I hope that this information helps. Let me know in case you have any questions.

Patrik S

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events