如何检查Azure DevOps上存储库的大小?

huangapple go评论59阅读模式
英文:

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 - 整数 - 仓库的压缩大小(字节)。

例如:

如何检查Azure DevOps上存储库的大小?

英文:

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:

如何检查Azure DevOps上存储库的大小?

huangapple
  • 本文由 发表于 2023年2月18日 00:35:46
  • 转载请务必保留本文链接:https://go.coder-hub.com/75486952.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定