英文:
How can I check the size of a repository on Azure DevOps?
问题
我想检查远程存储库的大小,而不将其下载到本地磁盘。 GitLab自动显示存储库的大小,包括Git文件和Git LFS文件的详细信息。Azure DevOps是否也可以实现这一功能?
我在网上搜索了解决方案,唯一找到的解决方案是将存储库下载到本地磁盘,然后运行"git count-objects -vH"命令。
英文:
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.
答案1
得分: 0
此外,您可以尝试 REST API:https://learn.microsoft.com/en-us/rest/api/azure/devops/git/repositories/list?view=azure-devops-rest-7.1&tabs=HTTP
size - 整数 - 仓库的压缩大小(字节)。
例如:
英文:
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:
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论