azure-devopsrepositorysize

How can I check the size of a repository on Azure DevOps?


I would like to check the size of a remote repository without downloading it to my local disk. GitLab automatically displays the size of the repository, including a breakdown of Git files and Git LFS files. Is this also possible on Azure DevOps?

I have searched for a solution online and the only solution I found was to download the repository to my local disk and run the "git count-objects -vH" command.


Solution

  • Additionally, you can try the rest api: https://learn.microsoft.com/en-us/rest/api/azure/devops/git/repositories/list?view=azure-devops-rest-7.1&tabs=HTTP

    size - integer - Compressed size (bytes) of the repository.

    As an example:

    enter image description here