【问题标题】:How to know remaining/used Google Cloud Source Repository storage?如何知道剩余/使用的 Google Cloud Source Repository 存储?
【发布时间】:2020-09-14 06:52:25
【问题描述】:

我刚刚开始使用 Google Cloud Source Repository,在推动了一个大型项目之后,我似乎不知道该项目在 Google Cloud 上占用了多少 GB。

【问题讨论】:

    标签: google-cloud-platform google-cloud-storage


    【解决方案1】:

    我没有找到如何在控制台上看到这个,但是你可以运行这个命令

    gcloud source repos describe <repoName>
    

    你有一个回购大小的行,以字节为单位

    size: '86831633'
    

    【讨论】:

    • 谢谢,我想我找到了一个似乎更容易的答案。
    【解决方案2】:

    没关系,找到答案了。

    git count-objects -vH(参见@VonC 的回答)

    Found it here.

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-08-13
    • 2022-01-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多