_Repo-size
Finding your repository size
To check the relative size of your repository in Bitbucket click Settings, which should open the Repository details page, then look for the Size line.
- Repository details: Find the repository size on this page.
- Settings: Notice this link in the left panel.
- Size: Each repository includes a size under its name on this page.
Git Repository Size from the Command Line
For Git, you can use the git count-objects -v
command:
$ git count-objects -v
count: 0
size: 0
in-pack: 478
packs: 1
size-pack: 92
prune-packable: 0
garbage: 0
The size-pack value is the size of your repository when it is pushed to a remote server like Bitbucket. The size-pack value is in kilobytes. So, in the above example the repository is not even 1 MB.
Mercurial Repository Size from the Command Line
Mercurial does not provide a command specifically for find a repository repository size. You can use the bundle command to generate a compression of your repository and then see the size of the file:
$ hg bundle --all my-bundle.hg
2474 changesets found
$ ls -al my-bundle.hg
-rw-r--r-- 1 manthony staff 21658140 Feb 10 15:03 my-bundle.hg