One of my older workspaces is 1.7 GB. I'm not actively using much, but I don't want it locked. There are a couple dozen repos going back over a decade, some are C++ and Java, probably have things committed that shouldn't be. I'm sure it could be cleaned. How? All Bitbucket tells me is the overall workspace size.
How do I find the big files?
How do I clean them out?
Thanks for any help.
Hi @makeitTim
There is currently no feature in Bitbucket Cloud to show you all repositories by size:
In terms of figuring out what the large file sizes are, you may use this command against the large repository - it will sort the largest files to the top:
Once you have a list of those large files, you may reduce the repository size by removing those large files or converting them to GIT LFS:
To specifically remove files above 1mb, you can make use of the same BFG tool described in the links above to do so - instructions and a sample command for this are below:
bfg --strip-blobs-bigger-than 1M my-repo.git
Please note that any cleanup operations create garbage/dangling commits, which will inflate the size. We need to run a server-side gc from our side to complete the process, so please let me know when you're ready to do so.
Cheers!
- Ben (Bitbucket Cloud Support)
As far as I can tell, the only big files are various image assets an original .PSD image files stored in the repo. They are all over old C++, Android, and iOS projects which had mipmap raster approaches. Finding and cleaning them out doesn't look manageable?
Is there a way to move all the image assets over 1 MB to LFS? What's the approach here?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.