1
0
mirror of synced 2026-01-08 03:01:54 -05:00
Files
docs/translations/zh-CN/content/codespaces/codespaces-reference/understanding-billing-for-github-codespaces.md

4.1 KiB

title, intro, versions, redirect_from, type, topics, product, shortTitle, ms.openlocfilehash, ms.sourcegitcommit, ms.translationtype, ms.contentlocale, ms.lasthandoff, ms.locfileid
title intro versions redirect_from type topics product shortTitle ms.openlocfilehash ms.sourcegitcommit ms.translationtype ms.contentlocale ms.lasthandoff ms.locfileid
了解 GitHub Codespaces 的计费 了解如何对 {% data variables.product.prodname_github_codespaces %} 的使用进行计费。
fpt ghec
* *
/github/developing-online-with-codespaces/about-billing-for-codespaces
/codespaces/getting-started-with-codespaces/about-billing-for-codespaces
/codespaces/codespaces-reference/about-billing-for-codespaces
/codespaces/codespaces-reference/understanding-billing-for-codespaces
reference
Codespaces
Billing
{% data reusables.gated-features.codespaces %} Understanding billing 2dfec9e452360db117bdee7954fbe4fad2ad1c56 47bd0e48c7 HT zh-CN 09/05/2022 147111466

本文介绍 Codespaces 的计费工作原理,并说明组织的计费管理器如何提供帮助。

获取对 {% data variables.product.prodname_github_codespaces %} 的访问

组织的管理员可能会将 {% data variables.product.prodname_github_codespaces %} 的使用限制为仅限特定的个人帐户。 要获得访问权限,您需要联系您的帐单管理员。 有关详细信息,请参阅“管理 Codespaces 的访问和安全性”。

使用 {% data variables.product.prodname_codespaces %} 的费用

若要查看 {% data variables.product.prodname_codespaces %} 使用量的定价,请参阅“{% data variables.product.prodname_codespaces %} 定价”。

如何对代码空间的使用计费

代码空间将根据其计算分钟数及其在磁盘上使用的存储量付费。

如果启用代码空间的预构建,则会产生额外费用。 有关详细信息,请参阅“关于 {% data variables.product.prodname_github_codespaces %} 预生成”。

了解什么是计算分钟数

代码空间按其处于活动状态的分钟数计费。 如果代码空间窗口空闲 30 分钟,它将自动关闭,并且代码空间的计算计费将结束,直到您再次启动代码空间。

了解代码空间存储是如何计费的

对于 {% data variables.product.prodname_github_codespaces %},存储定义为包括与 codespace 相关的任何文件,例如克隆的存储库、配置文件和扩展等。 此存储在代码空间关闭时计费。 codespace 的存储计费在你将其从 https://github.com/codespaces 中手动删除时结束。

支出限制的工作原理

在组织可以使用 {% data variables.product.prodname_codespaces %} 之前,帐单管理员需要设置支出限制。 有关详细信息,请参阅“管理 {% data variables.product.prodname_github_codespaces %} 的支出限制”。

在达到支出限制时导出更改

{% data reusables.codespaces.exporting-changes %}

检查当前使用情况和限制

如果需要检查当前使用情况或支出限制,请与组织的帐单管理员联系。 有关详细信息,请参阅“查看 {% data variables.product.prodname_github_codespaces %} 使用情况”。

代码空间可以自动删除

当您从组织或存储库中删除时,您的代码空间将自动删除。

删除未使用的代码空间

你可以在 https://github.com/codespaces 中以及从 {% data variables.product.prodname_vscode %} 中手动删除 codespace。 要减小代码空间的大小,可以使用终端或从 {% data variables.product.prodname_vscode %} 中手动删除文件。

延伸阅读