New translation batch for cn (#27844)
* Add crowdin translations * Run script/i18n/homogenize-frontmatter.js * Run script/i18n/lint-translation-files.js --check rendering * run script/i18n/reset-files-with-broken-liquid-tags.js --language=cn * run script/i18n/reset-known-broken-translation-files.js * Check in cn CSV report Co-authored-by: Grace Park <gracepark@github.com>
This commit is contained in:
@@ -4,12 +4,11 @@ translations/zh-CN/content/account-and-profile/managing-subscriptions-and-notifi
|
||||
translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-profile/managing-contribution-graphs-on-your-profile/sending-enterprise-contributions-to-your-githubcom-profile.md,broken liquid tags
|
||||
translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-profile/managing-contribution-graphs-on-your-profile/viewing-contributions-on-your-profile.md,broken liquid tags
|
||||
translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-profile/managing-contribution-graphs-on-your-profile/why-are-my-contributions-not-showing-up-on-my-profile.md,broken liquid tags
|
||||
translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/about-your-personal-dashboard.md,broken liquid tags
|
||||
translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/changing-your-github-username.md,rendering error
|
||||
translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-the-default-branch-name-for-your-repositories.md,broken liquid tags
|
||||
translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/about-organization-membership.md,broken liquid tags
|
||||
translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-personal-account-settings/about-your-personal-dashboard.md,broken liquid tags
|
||||
translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-personal-account-settings/changing-your-github-username.md,rendering error
|
||||
translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-personal-account-settings/managing-the-default-branch-name-for-your-repositories.md,broken liquid tags
|
||||
translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-membership-in-organizations/about-organization-membership.md,broken liquid tags
|
||||
translations/zh-CN/content/actions/automating-builds-and-tests/about-continuous-integration.md,broken liquid tags
|
||||
translations/zh-CN/content/actions/deployment/about-deployments/deploying-with-github-actions.md,broken liquid tags
|
||||
translations/zh-CN/content/actions/hosting-your-own-runners/about-self-hosted-runners.md,broken liquid tags
|
||||
translations/zh-CN/content/actions/hosting-your-own-runners/adding-self-hosted-runners.md,Listed in localization-support#489
|
||||
translations/zh-CN/content/actions/hosting-your-own-runners/adding-self-hosted-runners.md,broken liquid tags
|
||||
@@ -29,7 +28,7 @@ translations/zh-CN/content/admin/code-security/managing-github-advanced-security
|
||||
translations/zh-CN/content/admin/code-security/managing-github-advanced-security-for-your-enterprise/deploying-github-advanced-security-in-your-enterprise.md,broken liquid tags
|
||||
translations/zh-CN/content/admin/code-security/managing-supply-chain-security-for-your-enterprise/about-supply-chain-security-for-your-enterprise.md,broken liquid tags
|
||||
translations/zh-CN/content/admin/code-security/managing-supply-chain-security-for-your-enterprise/viewing-the-vulnerability-data-for-your-enterprise.md,broken liquid tags
|
||||
translations/zh-CN/content/admin/configuration/configuring-github-connect/about-github-connect.md,broken liquid tags
|
||||
translations/zh-CN/content/admin/configuration/configuring-github-connect/about-github-connect.md,rendering error
|
||||
translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-automatic-user-license-sync-for-your-enterprise.md,broken liquid tags
|
||||
translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-dependabot-for-your-enterprise.md,broken liquid tags
|
||||
translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-server-statistics-for-your-enterprise.md,broken liquid tags
|
||||
@@ -171,7 +170,6 @@ translations/zh-CN/content/code-security/supply-chain-security/end-to-end-supply
|
||||
translations/zh-CN/content/code-security/supply-chain-security/understanding-your-software-supply-chain/about-supply-chain-security.md,broken liquid tags
|
||||
translations/zh-CN/content/code-security/supply-chain-security/understanding-your-software-supply-chain/about-the-dependency-graph.md,Listed in localization-support#489
|
||||
translations/zh-CN/content/code-security/supply-chain-security/understanding-your-software-supply-chain/troubleshooting-the-dependency-graph.md,broken liquid tags
|
||||
translations/zh-CN/content/codespaces/codespaces-reference/using-github-copilot-in-codespaces.md,broken liquid tags
|
||||
translations/zh-CN/content/codespaces/customizing-your-codespace/changing-the-machine-type-for-your-codespace.md,broken liquid tags
|
||||
translations/zh-CN/content/codespaces/customizing-your-codespace/personalizing-codespaces-for-your-account.md,broken liquid tags
|
||||
translations/zh-CN/content/codespaces/customizing-your-codespace/setting-your-default-editor-for-codespaces.md,broken liquid tags
|
||||
@@ -310,6 +308,7 @@ translations/zh-CN/data/release-notes/enterprise-server/3-1/18.yml,broken liquid
|
||||
translations/zh-CN/data/release-notes/enterprise-server/3-1/19.yml,broken liquid tags
|
||||
translations/zh-CN/data/release-notes/enterprise-server/3-1/2.yml,broken liquid tags
|
||||
translations/zh-CN/data/release-notes/enterprise-server/3-1/20.yml,broken liquid tags
|
||||
translations/zh-CN/data/release-notes/enterprise-server/3-1/21.yml,broken liquid tags
|
||||
translations/zh-CN/data/release-notes/enterprise-server/3-1/3.yml,broken liquid tags
|
||||
translations/zh-CN/data/release-notes/enterprise-server/3-1/4.yml,broken liquid tags
|
||||
translations/zh-CN/data/release-notes/enterprise-server/3-1/5.yml,broken liquid tags
|
||||
|
||||
|
@@ -37,7 +37,7 @@ topics:
|
||||
- Profiles
|
||||
- Notifications
|
||||
children:
|
||||
- /setting-up-and-managing-your-github-user-account
|
||||
- /setting-up-and-managing-your-personal-account-on-github
|
||||
- /setting-up-and-managing-your-github-profile
|
||||
- /managing-subscriptions-and-notifications-on-github
|
||||
---
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
---
|
||||
title: 设置和管理 GitHub 用户帐户
|
||||
intro: 您可以管理 GitHub 个人帐户中的设置,包括电子邮件首选项、个人仓库的协作者权限以及组织成员身份。
|
||||
title: Setting up and managing your personal account on GitHub
|
||||
intro: 'You can manage settings for your personal account on {% data variables.product.prodname_dotcom %}, including email preferences, collaborator access for personal repositories, and organization memberships.'
|
||||
shortTitle: 个人帐户
|
||||
redirect_from:
|
||||
- /categories/setting-up-and-managing-your-github-user-account
|
||||
- /github/setting-up-and-managing-your-github-user-account
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
@@ -13,7 +14,7 @@ versions:
|
||||
topics:
|
||||
- Accounts
|
||||
children:
|
||||
- /managing-user-account-settings
|
||||
- /managing-personal-account-settings
|
||||
- /managing-email-preferences
|
||||
- /managing-access-to-your-personal-repositories
|
||||
- /managing-your-membership-in-organizations
|
||||
@@ -6,6 +6,7 @@ redirect_from:
|
||||
- /categories/managing-repository-collaborators
|
||||
- /articles/managing-access-to-your-personal-repositories
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-access-to-your-personal-repositories
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-access-to-your-personal-repositories
|
||||
product: '{% data reusables.gated-features.user-repo-collaborators %}'
|
||||
versions:
|
||||
fpt: '*'
|
||||
@@ -19,7 +20,7 @@ children:
|
||||
- /inviting-collaborators-to-a-personal-repository
|
||||
- /removing-a-collaborator-from-a-personal-repository
|
||||
- /removing-yourself-from-a-collaborators-repository
|
||||
- /maintaining-ownership-continuity-of-your-user-accounts-repositories
|
||||
- /maintaining-ownership-continuity-of-your-personal-accounts-repositories
|
||||
shortTitle: 访问仓库
|
||||
---
|
||||
|
||||
@@ -7,6 +7,7 @@ redirect_from:
|
||||
- /articles/inviting-collaborators-to-a-personal-repository
|
||||
- /github/setting-up-and-managing-your-github-user-account/inviting-collaborators-to-a-personal-repository
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-access-to-your-personal-repositories/inviting-collaborators-to-a-personal-repository
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-access-to-your-personal-repositories/inviting-collaborators-to-a-personal-repository
|
||||
product: '{% data reusables.gated-features.user-repo-collaborators %}'
|
||||
versions:
|
||||
fpt: '*'
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
title: 保持用户帐户仓库的所有权连续性
|
||||
title: Maintaining ownership continuity of your personal account's repositories
|
||||
intro: 如果您无法管理用户拥有的仓库,可以邀请他人管理。
|
||||
versions:
|
||||
fpt: '*'
|
||||
@@ -10,6 +10,7 @@ topics:
|
||||
redirect_from:
|
||||
- /github/setting-up-and-managing-your-github-user-account/maintaining-ownership-continuity-of-your-user-accounts-repositories
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-access-to-your-personal-repositories/maintaining-ownership-continuity-of-your-user-accounts-repositories
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-access-to-your-personal-repositories/maintaining-ownership-continuity-of-your-user-accounts-repositories
|
||||
shortTitle: 所有权连续性
|
||||
---
|
||||
|
||||
@@ -10,6 +10,7 @@ redirect_from:
|
||||
- /articles/removing-a-collaborator-from-a-personal-repository
|
||||
- /github/setting-up-and-managing-your-github-user-account/removing-a-collaborator-from-a-personal-repository
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-access-to-your-personal-repositories/removing-a-collaborator-from-a-personal-repository
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-access-to-your-personal-repositories/removing-a-collaborator-from-a-personal-repository
|
||||
product: '{% data reusables.gated-features.user-repo-collaborators %}'
|
||||
versions:
|
||||
fpt: '*'
|
||||
@@ -9,6 +9,7 @@ redirect_from:
|
||||
- /articles/removing-yourself-from-a-collaborators-repository
|
||||
- /github/setting-up-and-managing-your-github-user-account/removing-yourself-from-a-collaborators-repository
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-access-to-your-personal-repositories/removing-yourself-from-a-collaborators-repository
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-access-to-your-personal-repositories/removing-yourself-from-a-collaborators-repository
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
@@ -5,6 +5,7 @@ redirect_from:
|
||||
- /articles/adding-an-email-address-to-your-github-account
|
||||
- /github/setting-up-and-managing-your-github-user-account/adding-an-email-address-to-your-github-account
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-email-preferences/adding-an-email-address-to-your-github-account
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/adding-an-email-address-to-your-github-account
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
@@ -5,6 +5,7 @@ redirect_from:
|
||||
- /articles/blocking-command-line-pushes-that-expose-your-personal-email-address
|
||||
- /github/setting-up-and-managing-your-github-user-account/blocking-command-line-pushes-that-expose-your-personal-email-address
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-email-preferences/blocking-command-line-pushes-that-expose-your-personal-email-address
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/blocking-command-line-pushes-that-expose-your-personal-email-address
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghec: '*'
|
||||
@@ -5,6 +5,7 @@ redirect_from:
|
||||
- /articles/changing-your-primary-email-address
|
||||
- /github/setting-up-and-managing-your-github-user-account/changing-your-primary-email-address
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-email-preferences/changing-your-primary-email-address
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/changing-your-primary-email-address
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
@@ -5,6 +5,7 @@ redirect_from:
|
||||
- /categories/managing-email-preferences
|
||||
- /articles/managing-email-preferences
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-email-preferences
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
@@ -5,6 +5,7 @@ redirect_from:
|
||||
- /articles/managing-marketing-emails-from-github
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-marketing-emails-from-github
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-email-preferences/managing-marketing-emails-from-github
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/managing-marketing-emails-from-github
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghec: '*'
|
||||
@@ -7,6 +7,7 @@ redirect_from:
|
||||
- /articles/remembering-your-github-username-or-email
|
||||
- /github/setting-up-and-managing-your-github-user-account/remembering-your-github-username-or-email
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-email-preferences/remembering-your-github-username-or-email
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/remembering-your-github-username-or-email
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
@@ -5,6 +5,7 @@ redirect_from:
|
||||
- /articles/setting-a-backup-email-address
|
||||
- /github/setting-up-and-managing-your-github-user-account/setting-a-backup-email-address
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-email-preferences/setting-a-backup-email-address
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/setting-a-backup-email-address
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
@@ -12,6 +12,7 @@ redirect_from:
|
||||
- /articles/setting-your-commit-email-address
|
||||
- /github/setting-up-and-managing-your-github-user-account/setting-your-commit-email-address
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-email-preferences/setting-your-commit-email-address
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/setting-your-commit-email-address
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
@@ -5,6 +5,7 @@ redirect_from:
|
||||
- /articles/types-of-emails-github-sends
|
||||
- /github/setting-up-and-managing-your-github-user-account/types-of-emails-github-sends
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-email-preferences/types-of-emails-github-sends
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/types-of-emails-github-sends
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghec: '*'
|
||||
@@ -6,6 +6,7 @@ redirect_from:
|
||||
- /articles/about-your-personal-dashboard
|
||||
- /github/setting-up-and-managing-your-github-user-account/about-your-personal-dashboard
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-user-account-settings/about-your-personal-dashboard
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/about-your-personal-dashboard
|
||||
intro: 'You can visit your personal dashboard to keep track of issues and pull requests you''re working on or following, navigate to your top repositories and team pages, stay updated on recent activities in organizations and repositories you''re subscribed to, and explore recommended repositories.'
|
||||
versions:
|
||||
fpt: '*'
|
||||
@@ -5,6 +5,7 @@ redirect_from:
|
||||
- /articles/best-practices-for-leaving-your-company
|
||||
- /github/setting-up-and-managing-your-github-user-account/best-practices-for-leaving-your-company
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-user-account-settings/best-practices-for-leaving-your-company
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/best-practices-for-leaving-your-company
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghec: '*'
|
||||
@@ -9,6 +9,7 @@ redirect_from:
|
||||
- /articles/changing-your-github-username
|
||||
- /github/setting-up-and-managing-your-github-user-account/changing-your-github-username
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-user-account-settings/changing-your-github-username
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/changing-your-github-username
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
@@ -6,6 +6,7 @@ redirect_from:
|
||||
- /articles/converting-a-user-into-an-organization
|
||||
- /github/setting-up-and-managing-your-github-user-account/converting-a-user-into-an-organization
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-user-account-settings/converting-a-user-into-an-organization
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/converting-a-user-into-an-organization
|
||||
intro: 您可以将个人帐户转换为组织。 这样可以对属于组织的仓库设置更细化的权限。
|
||||
versions:
|
||||
fpt: '*'
|
||||
@@ -48,7 +49,7 @@ shortTitle: 用户到组织
|
||||
2. [离开](/articles/removing-yourself-from-an-organization)要转换的个人帐户此前加入的任何组织。
|
||||
{% data reusables.user-settings.access_settings %}
|
||||
{% data reusables.user-settings.organizations %}
|
||||
5. 在“Transform account(转换帐户)”下,单击 **Turn <username> into an organization(将 <username> 转换为组织)**。 
|
||||
5. Under "Transform account", click **Turn <username> into an organization**. 
|
||||
6. 在 Account Transformation Warning(帐户转换警告)对话框中,查看并确认转换。 请注意,此框中的信息与本文顶部的警告信息相同。 
|
||||
7. 在“Transform your user into an organization(将用户转换为组织)”页面的“Choose an organization owner(选择组织所有者)”下,选择您在前面创建的备用个人帐户或您信任的其他用户来管理组织。 
|
||||
8. 选择新组织的订阅,并在提示时输入帐单信息。
|
||||
@@ -1,11 +1,12 @@
|
||||
---
|
||||
title: 删除用户帐户
|
||||
title: Deleting your personal account
|
||||
intro: '您可以随时在 {% data variables.product.product_name %} 上删除您的个人帐户。'
|
||||
redirect_from:
|
||||
- /articles/deleting-a-user-account
|
||||
- /articles/deleting-your-user-account
|
||||
- /github/setting-up-and-managing-your-github-user-account/deleting-your-user-account
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-user-account-settings/deleting-your-user-account
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/deleting-your-user-account
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
@@ -6,6 +6,7 @@ redirect_from:
|
||||
- /categories/user-accounts
|
||||
- /articles/managing-user-account-settings
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-user-account-settings
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
@@ -18,15 +19,15 @@ children:
|
||||
- /managing-your-theme-settings
|
||||
- /managing-your-tab-size-rendering-preference
|
||||
- /changing-your-github-username
|
||||
- /merging-multiple-user-accounts
|
||||
- /merging-multiple-personal-accounts
|
||||
- /converting-a-user-into-an-organization
|
||||
- /deleting-your-user-account
|
||||
- /permission-levels-for-a-user-account-repository
|
||||
- /permission-levels-for-user-owned-project-boards
|
||||
- /deleting-your-personal-account
|
||||
- /permission-levels-for-a-personal-account-repository
|
||||
- /permission-levels-for-a-project-board-owned-by-a-personal-account
|
||||
- /managing-accessibility-settings
|
||||
- /managing-the-default-branch-name-for-your-repositories
|
||||
- /managing-security-and-analysis-settings-for-your-user-account
|
||||
- /managing-access-to-your-user-accounts-project-boards
|
||||
- /managing-security-and-analysis-settings-for-your-personal-account
|
||||
- /managing-access-to-your-personal-accounts-project-boards
|
||||
- /integrating-jira-with-your-personal-projects
|
||||
- /best-practices-for-leaving-your-company
|
||||
- /what-does-the-available-for-hire-checkbox-do
|
||||
@@ -5,6 +5,7 @@ redirect_from:
|
||||
- /articles/integrating-jira-with-your-personal-projects
|
||||
- /github/setting-up-and-managing-your-github-user-account/integrating-jira-with-your-personal-projects
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-user-account-settings/integrating-jira-with-your-personal-projects
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/integrating-jira-with-your-personal-projects
|
||||
versions:
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
title: 管理对用户帐户项目板的访问
|
||||
title: Managing access to your personal account's project boards
|
||||
intro: 作为项目板所有者,您可以添加或删除协作者,以及自定义他们对项目板的权限。
|
||||
redirect_from:
|
||||
- /articles/managing-project-boards-in-your-repository-or-organization
|
||||
@@ -7,6 +7,7 @@ redirect_from:
|
||||
- /articles/managing-access-to-your-user-accounts-project-boards
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-access-to-your-user-accounts-project-boards
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-access-to-your-user-accounts-project-boards
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-access-to-your-user-accounts-project-boards
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
@@ -3,6 +3,8 @@ title: 管理辅助功能设置
|
||||
intro: '您可以在 {% data variables.product.prodname_dotcom %} 上的辅助功能设置中禁用字符键快捷方式。'
|
||||
versions:
|
||||
feature: keyboard-shortcut-accessibility-setting
|
||||
redirect_from:
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-accessibility-settings
|
||||
---
|
||||
|
||||
## 关于辅助功能设置
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
title: 管理用户帐户的安全和分析设置
|
||||
title: Managing security and analysis settings for your personal account
|
||||
intro: '您可以控制功能以保护 {% data variables.product.prodname_dotcom %} 上项目的安全并分析其中的代码。'
|
||||
versions:
|
||||
fpt: '*'
|
||||
@@ -10,6 +10,7 @@ topics:
|
||||
redirect_from:
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-security-and-analysis-settings-for-your-user-account
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-security-and-analysis-settings-for-your-user-account
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-security-and-analysis-settings-for-your-user-account
|
||||
shortTitle: 管理安全和分析
|
||||
---
|
||||
|
||||
@@ -9,6 +9,8 @@ versions:
|
||||
topics:
|
||||
- Accounts
|
||||
shortTitle: 管理选项卡大小
|
||||
redirect_from:
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-your-tab-size-rendering-preference
|
||||
---
|
||||
|
||||
如果您觉得在 {% data variables.product.product_name %} 上呈现的选项卡式代码缩进占用了太多或太少的空间,可以在设置中更改。
|
||||
@@ -11,6 +11,7 @@ topics:
|
||||
redirect_from:
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-your-theme-settings
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-your-theme-settings
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-your-theme-settings
|
||||
shortTitle: 管理主题设置
|
||||
---
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
title: 合并多个用户帐户
|
||||
title: Merging multiple personal accounts
|
||||
intro: 如果工作和个人分别使用不同的帐户,您可以合并这些帐户。
|
||||
redirect_from:
|
||||
- /articles/can-i-merge-two-accounts
|
||||
@@ -7,6 +7,7 @@ redirect_from:
|
||||
- /articles/merging-multiple-user-accounts
|
||||
- /github/setting-up-and-managing-your-github-user-account/merging-multiple-user-accounts
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-user-account-settings/merging-multiple-user-accounts
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/merging-multiple-user-accounts
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghec: '*'
|
||||
@@ -39,7 +40,7 @@ shortTitle: 合并多个个人帐户
|
||||
|
||||
1. 从您要删除的帐户[转让任何仓库](/articles/how-to-transfer-a-repository)到要保留的帐户。 议题、拉取请求和 wiki 也会转让。 确认要保留的帐户中存在仓库。
|
||||
2. [更新远程 URL](/github/getting-started-with-github/managing-remote-repositories)(在移动的仓库的任何本地克隆中)。
|
||||
3. [删除帐户](/articles/deleting-your-user-account)(不再使用的)。
|
||||
3. [删除帐户](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-personal-account-settings/deleting-your-personal-account)(不再使用的)。
|
||||
4. 要将过去的提交归因于新帐户,请将用于创作提交的电子邮件地址添加到要保留的帐户。 更多信息请参阅“[为什么我的贡献没有在我的个人资料中显示?](/account-and-profile/setting-up-and-managing-your-github-profile/managing-contribution-graphs-on-your-profile/why-are-my-contributions-not-showing-up-on-my-profile#your-local-git-commit-email-isnt-connected-to-your-account)”
|
||||
|
||||
## 延伸阅读
|
||||
@@ -1,10 +1,11 @@
|
||||
---
|
||||
title: 用户帐户仓库的权限级别
|
||||
title: Permission levels for a personal account repository
|
||||
intro: 个人帐户拥有的仓库有两种权限级别:仓库所有者和协作者。
|
||||
redirect_from:
|
||||
- /articles/permission-levels-for-a-user-account-repository
|
||||
- /github/setting-up-and-managing-your-github-user-account/permission-levels-for-a-user-account-repository
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-user-account-settings/permission-levels-for-a-user-account-repository
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/permission-levels-for-a-user-account-repository
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
@@ -12,7 +13,7 @@ versions:
|
||||
ghec: '*'
|
||||
topics:
|
||||
- Accounts
|
||||
shortTitle: 权限用户仓库
|
||||
shortTitle: 仓库权限
|
||||
---
|
||||
|
||||
## 关于个人帐户仓库的权限级别
|
||||
@@ -1,10 +1,11 @@
|
||||
---
|
||||
title: 用户拥有的项目板的权限级别
|
||||
title: Permission levels for a project board owned by a personal account
|
||||
intro: 个人帐户拥有的项目板有两种权限级别:项目板所有者和协作者。
|
||||
redirect_from:
|
||||
- /articles/permission-levels-for-user-owned-project-boards
|
||||
- /github/setting-up-and-managing-your-github-user-account/permission-levels-for-user-owned-project-boards
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-user-account-settings/permission-levels-for-user-owned-project-boards
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/permission-levels-for-user-owned-project-boards
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
@@ -12,7 +13,7 @@ versions:
|
||||
ghec: '*'
|
||||
topics:
|
||||
- Accounts
|
||||
shortTitle: 权限用户项目板
|
||||
shortTitle: 项目板权限
|
||||
---
|
||||
|
||||
## 权限概述
|
||||
@@ -5,6 +5,7 @@ redirect_from:
|
||||
- /articles/what-does-the-available-for-hire-checkbox-do
|
||||
- /github/setting-up-and-managing-your-github-user-account/what-does-the-available-for-hire-checkbox-do
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-user-account-settings/what-does-the-available-for-hire-checkbox-do
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/what-does-the-available-for-hire-checkbox-do
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghec: '*'
|
||||
@@ -5,6 +5,7 @@ redirect_from:
|
||||
- /articles/about-organization-membership
|
||||
- /github/setting-up-and-managing-your-github-user-account/about-organization-membership
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/about-organization-membership
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/about-organization-membership
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
@@ -8,6 +8,7 @@ redirect_from:
|
||||
- /articles/accessing-an-organization
|
||||
- /github/setting-up-and-managing-your-github-user-account/accessing-an-organization
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/accessing-an-organization
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/accessing-an-organization
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
@@ -4,6 +4,7 @@ intro: 如果您是组织的成员,便可公开或隐藏您的成员资格,
|
||||
redirect_from:
|
||||
- /articles/managing-your-membership-in-organizations
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
@@ -9,6 +9,7 @@ topics:
|
||||
redirect_from:
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-your-scheduled-reminders
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/managing-your-scheduled-reminders
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/managing-your-scheduled-reminders
|
||||
shortTitle: 管理预定提醒
|
||||
---
|
||||
|
||||
@@ -6,6 +6,7 @@ redirect_from:
|
||||
- /articles/publicizing-or-hiding-organization-membership
|
||||
- /github/setting-up-and-managing-your-github-user-account/publicizing-or-hiding-organization-membership
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/publicizing-or-hiding-organization-membership
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/publicizing-or-hiding-organization-membership
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
@@ -6,6 +6,7 @@ redirect_from:
|
||||
- /articles/removing-yourself-from-an-organization
|
||||
- /github/setting-up-and-managing-your-github-user-account/removing-yourself-from-an-organization
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/removing-yourself-from-an-organization
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/removing-yourself-from-an-organization
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
@@ -7,6 +7,7 @@ redirect_from:
|
||||
- /articles/requesting-organization-approval-for-oauth-apps
|
||||
- /github/setting-up-and-managing-your-github-user-account/requesting-organization-approval-for-oauth-apps
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/requesting-organization-approval-for-oauth-apps
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/requesting-organization-approval-for-oauth-apps
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghec: '*'
|
||||
@@ -7,6 +7,7 @@ redirect_from:
|
||||
- /articles/viewing-peoples-roles-in-an-organization
|
||||
- /github/setting-up-and-managing-your-github-user-account/viewing-peoples-roles-in-an-organization
|
||||
- /github/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/viewing-peoples-roles-in-an-organization
|
||||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/viewing-peoples-roles-in-an-organization
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
@@ -1,18 +0,0 @@
|
||||
---
|
||||
title: 构建并测试 Node.js 或 Python
|
||||
shortTitle: 构建和测试 Node.js 或 Python
|
||||
intro: 您可以创建持续集成 (CI) 工作流程来构建和测试您的项目。 使用语言选择器显示所选语言的示例。
|
||||
redirect_from:
|
||||
- /actions/guides/building-and-testing-nodejs-or-python
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
type: tutorial
|
||||
topics:
|
||||
- CI
|
||||
---
|
||||
|
||||
|
||||
<!-- This article is specially rendered via the pages/ directory -->
|
||||
@@ -11,13 +11,11 @@ versions:
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
type: tutorial
|
||||
hidden: true
|
||||
topics:
|
||||
- CI
|
||||
- Node
|
||||
- JavaScript
|
||||
shortTitle: 构建和测试 Node.js
|
||||
hasExperimentalAlternative: true
|
||||
---
|
||||
|
||||
{% data reusables.actions.enterprise-beta %}
|
||||
|
||||
@@ -11,12 +11,10 @@ versions:
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
type: tutorial
|
||||
hidden: true
|
||||
topics:
|
||||
- CI
|
||||
- Python
|
||||
shortTitle: 构建和测试 Python
|
||||
hasExperimentalAlternative: true
|
||||
---
|
||||
|
||||
{% data reusables.actions.enterprise-beta %}
|
||||
@@ -246,7 +244,7 @@ steps:
|
||||
- run: pip test
|
||||
```
|
||||
|
||||
默认情况下, `setup-python` 操作会在整个存储库中搜索依赖项文件(对于 pip 为`requirements.txt`,对于 pipenv 为 `Pipfile.lock`)。 更多信息请参阅 `setup-python` 自述文件中的“[缓存包依赖项](https://github.com/actions/setup-python#caching-packages-dependencies)”。
|
||||
By default, the `setup-python` action searches for the dependency file (`requirements.txt` for pip, `Pipfile.lock` for pipenv or `poetry.lock` for poetry) in the whole repository. 更多信息请参阅 `setup-python` 自述文件中的“[缓存包依赖项](https://github.com/actions/setup-python#caching-packages-dependencies)”。
|
||||
|
||||
如果您有自定义要求或需要更精确的缓存控制,则可以使用 [`cache` 操作](https://github.com/marketplace/actions/cache)。 Pip 根据运行器的操作系统将依赖项缓存在不同的位置。 您需要缓存的路径可能不同于上面的 Ubuntu 示例,具体取决于您使用的操作系统。 更多信息请参阅 `cache` 操作存储库中的 [Python 缓存示例](https://github.com/actions/cache/blob/main/examples.md#python---pip)。
|
||||
|
||||
|
||||
@@ -14,13 +14,14 @@ redirect_from:
|
||||
- /actions/language-and-framework-guides/github-actions-for-java
|
||||
- /actions/language-and-framework-guides/github-actions-for-javascript-and-typescript
|
||||
- /actions/language-and-framework-guides/github-actions-for-python
|
||||
- /actions/guides/building-and-testing-nodejs-or-python
|
||||
- /actions/automating-builds-and-tests/building-and-testing-nodejs-or-python
|
||||
children:
|
||||
- /about-continuous-integration
|
||||
- /building-and-testing-java-with-ant
|
||||
- /building-and-testing-java-with-gradle
|
||||
- /building-and-testing-java-with-maven
|
||||
- /building-and-testing-net
|
||||
- /building-and-testing-nodejs-or-python
|
||||
- /building-and-testing-nodejs
|
||||
- /building-and-testing-powershell
|
||||
- /building-and-testing-python
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: Deploying with GitHub Actions
|
||||
intro: Learn how to control deployments with features like environments and concurrency.
|
||||
title: 使用 GitHub Actions 进行部署
|
||||
intro: 了解如何使用环境和并发性等功能控制部署。
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
@@ -11,35 +11,35 @@ redirect_from:
|
||||
- /actions/deployment/deploying-with-github-actions
|
||||
topics:
|
||||
- CD
|
||||
shortTitle: Deploy with GitHub Actions
|
||||
shortTitle: 使用 GitHub Actions 进行部署
|
||||
---
|
||||
|
||||
{% data reusables.actions.enterprise-beta %}
|
||||
{% data reusables.actions.enterprise-github-hosted-runners %}
|
||||
|
||||
## Introduction
|
||||
## 简介
|
||||
|
||||
{% data variables.product.prodname_actions %} offers features that let you control deployments. You can:
|
||||
{% data variables.product.prodname_actions %} 提供了允许您控制部署的功能。 您可以:
|
||||
|
||||
- Trigger workflows with a variety of events.
|
||||
- Configure environments to set rules before a job can proceed and to limit access to secrets.
|
||||
- Use concurrency to control the number of deployments running at a time.
|
||||
- 使用各种事件触发工作流程。
|
||||
- 配置环境以在作业可以继续之前设置规则,并限制对机密的访问。
|
||||
- 使用并发性来控制一次运行的部署数。
|
||||
|
||||
For more information about continuous deployment, see "[About continuous deployment](/actions/deployment/about-continuous-deployment)."
|
||||
有关持续部署的更多信息,请参阅“[关于持续部署](/actions/deployment/about-continuous-deployment)”。
|
||||
|
||||
## Prerequisites
|
||||
## 基本要求
|
||||
|
||||
You should be familiar with the syntax for {% data variables.product.prodname_actions %}. For more information, see "[Learn {% data variables.product.prodname_actions %}](/actions/learn-github-actions)."
|
||||
您应该熟悉 {% data variables.product.prodname_actions %} 的语法。 更多信息请参阅“[Learn {% data variables.product.prodname_actions %}](/actions/learn-github-actions)”。
|
||||
|
||||
## Triggering your deployment
|
||||
## 触发部署
|
||||
|
||||
You can use a variety of events to trigger your deployment workflow. Some of the most common are: `pull_request`, `push`, and `workflow_dispatch`.
|
||||
您可以使用各种事件来触发您的部署工作流程。 最常见的有:`pull_request`、`put` 和 `Workflow_paid`。
|
||||
|
||||
For example, a workflow with the following triggers runs whenever:
|
||||
例如,具有以下触发器的工作流在以下情况下会运行:
|
||||
|
||||
- There is a push to the `main` branch.
|
||||
- A pull request targeting the `main` branch is opened, synchronized, or reopened.
|
||||
- Someone manually triggers it.
|
||||
- 有人推送到 `main` 分支。
|
||||
- 打开、同步或重新打开面向 `main` 分支的拉取请求。
|
||||
- 有人手动触发它。
|
||||
|
||||
```yaml
|
||||
on:
|
||||
@@ -52,23 +52,23 @@ on:
|
||||
workflow_dispatch:
|
||||
```
|
||||
|
||||
For more information, see "[Events that trigger workflows](/actions/reference/events-that-trigger-workflows)."
|
||||
更多信息请参阅“[触发工作流程的事件](/actions/reference/events-that-trigger-workflows)”。
|
||||
|
||||
## Using environments
|
||||
## 使用环境
|
||||
|
||||
{% data reusables.actions.about-environments %}
|
||||
|
||||
## Using concurrency
|
||||
## 使用并发
|
||||
|
||||
Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time. You can use concurrency so that an environment has a maximum of one deployment in progress and one deployment pending at a time.
|
||||
并发确保只有使用相同并发组的单一作业或工作流程才会同时运行。 您可以使用并发,以便环境中每次最多有一个正在进行的部署和一个待处理的部署。
|
||||
|
||||
{% note %}
|
||||
|
||||
**Note:** `concurrency` and `environment` are not connected. The concurrency value can be any string; it does not need to be an environment name. Additionally, if another workflow uses the same environment but does not specify concurrency, that workflow will not be subject to any concurrency rules.
|
||||
**注意**:`concurrency` 和 `environment` 未连接。 并发值可以是任何字符串;它无需是环境名称。 此外,如果另一个工作流程使用相同的环境,但未指定并发性,则该工作流程将不受任何并发规则的约束。
|
||||
|
||||
{% endnote %}
|
||||
|
||||
For example, when the following workflow runs, it will be paused with the status `pending` if any job or workflow that uses the `production` concurrency group is in progress. It will also cancel any job or workflow that uses the `production` concurrency group and has the status `pending`. This means that there will be a maximum of one running and one pending job or workflow in that uses the `production` concurrency group.
|
||||
例如,当以下工作流程运行时,如果正在进行使用 `production` 并发组的任何作业或工作流程,则该工作流程将暂停,且状态为 `pending`。 它还将取消使用 `production` 并发组并且状态为 `pending` 的任何作业或工作流程。 这意味着最多将有一个正在运行的作业或工作流程和一个使用 `production` 并发组的挂起作业或工作流程。
|
||||
|
||||
```yaml
|
||||
name: Deployment
|
||||
@@ -89,7 +89,7 @@ jobs:
|
||||
# ...deployment-specific steps
|
||||
```
|
||||
|
||||
You can also specify concurrency at the job level. This will allow other jobs in the workflow to proceed even if the concurrent job is `pending`.
|
||||
您也可以在作业级别指定并发性。 这将允许工作流中的其他作业继续,即使并发作业状态为 `pending`。
|
||||
|
||||
```yaml
|
||||
name: Deployment
|
||||
@@ -109,7 +109,7 @@ jobs:
|
||||
# ...deployment-specific steps
|
||||
```
|
||||
|
||||
You can also use `cancel-in-progress` to cancel any currently running job or workflow in the same concurrency group.
|
||||
还可以使用 `cancel-in-progress` 取消同一并发组中任何当前正在运行的作业或工作流程。
|
||||
|
||||
```yaml
|
||||
name: Deployment
|
||||
@@ -132,42 +132,42 @@ jobs:
|
||||
# ...deployment-specific steps
|
||||
```
|
||||
|
||||
For guidance on writing deployment-specific steps, see "[Finding deployment examples](#finding-deployment-examples)."
|
||||
有关编写特定于部署的步骤的指导,请参阅“[查找部署示例](#finding-deployment-examples)”。
|
||||
|
||||
## Viewing deployment history
|
||||
## 查看部署历史记录
|
||||
|
||||
When a {% data variables.product.prodname_actions %} workflow deploys to an environment, the environment is displayed on the main page of the repository. For more information about viewing deployments to environments, see "[Viewing deployment history](/developers/overview/viewing-deployment-history)."
|
||||
当 {% data variables.product.prodname_actions %} 工作流程部署到某个环境时,该环境将显示在存储库的主页上。 有关查看环境部署的详细信息,请参阅“[查看部署历史记录](/developers/overview/viewing-deployment-history)”。
|
||||
|
||||
## Monitoring workflow runs
|
||||
## 监控工作流程运行
|
||||
|
||||
Every workflow run generates a real-time graph that illustrates the run progress. You can use this graph to monitor and debug deployments. For more information see, "[Using the visualization graph](/actions/monitoring-and-troubleshooting-workflows/using-the-visualization-graph)."
|
||||
每个工作流程运行都会生成一个实时图表,说明运行进度。 您可以使用此图表来监控和调试部署。 更多信息请参阅“[使用可视化图](/actions/monitoring-and-troubleshooting-workflows/using-the-visualization-graph)”。
|
||||
|
||||
You can also view the logs of each workflow run and the history of workflow runs. For more information, see "[Viewing workflow run history](/actions/monitoring-and-troubleshooting-workflows/viewing-workflow-run-history)."
|
||||
您还可以查看每个工作流程运行的日志和工作流程运行的历史记录。 更多信息请参阅“[查看工作流程运行历史记录](/actions/monitoring-and-troubleshooting-workflows/viewing-workflow-run-history)”。
|
||||
|
||||
## Tracking deployments through apps
|
||||
## 通过应用跟踪部署
|
||||
|
||||
{% ifversion fpt or ghec %}
|
||||
If your personal account or organization on {% ifversion ghae %}{% data variables.product.product_name %}{% else %}{% data variables.product.product_location %}{% endif %} is integrated with Microsoft Teams or Slack, you can track deployments that use environments through Microsoft Teams or Slack. For example, you can receive notifications through the app when a deployment is pending approval, when a deployment is approved, or when the deployment status changes. For more information about integrating Microsoft Teams or Slack, see "[GitHub extensions and integrations](/github/customizing-your-github-workflow/exploring-integrations/github-extensions-and-integrations#team-communication-tools)."
|
||||
如果您在 {% ifversion ghae %}{% data variables.product.product_name %}{% else %}{% data variables.product.product_location %}{% endif %} 上的个人帐户或组织与 Microsoft Teams 或 Slack 集成,则可以通过 Microsoft Teams 或 Slack 跟踪使用环境的部署。 例如,当部署正在等待批准、部署获得批准或部署状态更改时,您可以通过应用接收通知。 有关集成 Microsoft Teams 或 Slack 的详细信息,请参阅“[GitHub 扩展和集成](/github/customizing-your-github-workflow/exploring-integrations/github-extensions-and-integrations#team-communication-tools)”。
|
||||
{% endif %}
|
||||
|
||||
You can also build an app that uses deployment and deployment status webhooks to track deployments. {% data reusables.actions.environment-deployment-event %} For more information, see "[Apps](/developers/apps)" and "[Webhook events and payloads](/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#deployment)."
|
||||
你还可以构建一个应用,该应用使用部署和部署状态 web 挂钩来跟踪部署。 {% data reusables.actions.environment-deployment-event %} 更多信息请参阅“[应用程序](/developers/apps)”和“[web 挂钩事件和有效负载](/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#deployment)”。
|
||||
|
||||
{% ifversion fpt or ghes or ghec %}
|
||||
|
||||
## Choosing a runner
|
||||
## 选择运行器
|
||||
|
||||
You can run your deployment workflow on {% data variables.product.company_short %}-hosted runners or on self-hosted runners. Traffic from {% data variables.product.company_short %}-hosted runners can come from a [wide range of network addresses](/rest/reference/meta#get-github-meta-information). If you are deploying to an internal environment and your company restricts external traffic into private networks, {% data variables.product.prodname_actions %} workflows running on {% data variables.product.company_short %}-hosted runners may not be communicate with your internal services or resources. To overcome this, you can host your own runners. For more information, see "[About self-hosted runners](/actions/hosting-your-own-runners/about-self-hosted-runners)" and "[About GitHub-hosted runners](/actions/using-github-hosted-runners/about-github-hosted-runners)."
|
||||
您可以在 {% data variables.product.company_short %} 托管的运行器或自托管运行器上运行部署工作流程。 来自 {% data variables.product.company_short %} 托管运行器的流量可以来自[广泛的网络地址](/rest/reference/meta#get-github-meta-information)。 If you are deploying to an internal environment and your company restricts external traffic into private networks, {% data variables.product.prodname_actions %} workflows running on {% data variables.product.company_short %}-hosted runners may not be able to communicate with your internal services or resources. 为了克服这一点,您可以托管自己的运行器。 更多信息请参阅“[关于自托管的运行器](/actions/hosting-your-own-runners/about-self-hosted-runners)”和“[关于 GitHub 托管的运行器](/actions/using-github-hosted-runners/about-github-hosted-runners)”。
|
||||
|
||||
{% endif %}
|
||||
|
||||
## Displaying a status badge
|
||||
## 显示状态徽章
|
||||
|
||||
You can use a status badge to display the status of your deployment workflow. {% data reusables.repositories.actions-workflow-status-badge-intro %}
|
||||
您可以使用状态徽章来显示您的部署工作流程状态。 {% data reusables.repositories.actions-workflow-status-badge-intro %}
|
||||
|
||||
For more information, see "[Adding a workflow status badge](/actions/managing-workflow-runs/adding-a-workflow-status-badge)."
|
||||
更多信息请参阅“[添加工作流程状态徽章](/actions/managing-workflow-runs/adding-a-workflow-status-badge)”。
|
||||
|
||||
## Finding deployment examples
|
||||
## 查找部署示例
|
||||
|
||||
This article demonstrated features of {% data variables.product.prodname_actions %} that you can add to your deployment workflows.
|
||||
本文演示了可添加到部署工作流程的 {% data variables.product.prodname_actions %} 的功能。
|
||||
|
||||
{% data reusables.actions.cd-templates-actions %}
|
||||
|
||||
@@ -134,4 +134,4 @@ jobs:
|
||||
* 有关原始入门工作流程,请参阅 {% data variables.product.prodname_actions %} `starter-workflows` 仓库中的 [`azure-webapps-node.yml`](https://github.com/actions/starter-workflows/blob/main/deployments/azure-webapps-node.yml)。
|
||||
* 用于部署 Web 应用的操作是正式的 Azure [`Azure/webapps-deploy`](https://github.com/Azure/webapps-deploy) 操作。
|
||||
* 有关部署到 Azure 的 GitHub 操作工作流程的更多示例,请参阅 [actions-workflow-samples](https://github.com/Azure/actions-workflow-samples) 存储库。
|
||||
* Azure web 应用文档中的“[在 Azure 中创建 Node.js web 应用](https://docs.microsoft.com/azure/app-service/quickstart-nodejs)”快速入门说明如何通过 [Azure App Service 扩展](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azureappservice)使用 VS Code。
|
||||
* The "[Create a Node.js web app in Azure](https://docs.microsoft.com/azure/app-service/quickstart-nodejs)" quickstart in the Azure web app documentation demonstrates using {% data variables.product.prodname_vscode %} with the [Azure App Service extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azureappservice).
|
||||
|
||||
@@ -208,7 +208,8 @@ Travis CI 和 {% data variables.product.prodname_actions %} 可以将自定义
|
||||
### 在 {% data variables.product.prodname_actions %} 中使用不同的语言
|
||||
|
||||
在 {% data variables.product.prodname_actions %} 中使用不同语言时,您可以在作业中创建步骤来设置语言依赖项。 有关使用特定语言的信息,请参阅特定指南:
|
||||
- [构建并测试 Node.js 或 Python](/actions/guides/building-and-testing-nodejs-or-python)
|
||||
- [构建和测试 Node.js](/actions/guides/building-and-testing-nodejs)
|
||||
- [构建和测试 Python](/actions/guides/building-and-testing-python)
|
||||
- [构建和测试 PowerShell](/actions/guides/building-and-testing-powershell)
|
||||
- [使用 Maven 构建和测试 Java](/actions/guides/building-and-testing-java-with-maven)
|
||||
- [使用 Gradle 构建和测试 Java](/actions/guides/building-and-testing-java-with-gradle)
|
||||
|
||||
@@ -37,7 +37,7 @@ miniTocMaxHeadingLevel: 3
|
||||
<td><a href="https://github.com/actions/setup-node#caching-global-packages-data">setup-node</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>pip, pipenv</td>
|
||||
<td>pip, pipenv, poetry</td>
|
||||
<td><a href="https://github.com/actions/setup-python#caching-packages-dependencies">setup-python</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@@ -64,6 +64,8 @@ After you enable {% data variables.product.prodname_dependabot_alerts %}, you ca
|
||||
|
||||
{% endnote %}
|
||||
|
||||
By default, {% data variables.product.prodname_actions %} runners used by {% data variables.product.prodname_dependabot %} need access to the internet, to download updated packages from upstream package managers. For {% data variables.product.prodname_dependabot_updates %} powered by {% data variables.product.prodname_github_connect %}, internet access provides your runners with a token that allows access to dependencies and advisories hosted on {% data variables.product.prodname_dotcom_the_website %}.
|
||||
|
||||
With {% data variables.product.prodname_dependabot_updates %}, {% data variables.product.company_short %} automatically creates pull requests to update dependencies in two ways.
|
||||
|
||||
- **{% data variables.product.prodname_dependabot_version_updates %}**: Users add a {% data variables.product.prodname_dependabot %} configuration file to the repository to enable {% data variables.product.prodname_dependabot %} to create pull requests when a new version of a tracked dependency is released. For more information, see "[About {% data variables.product.prodname_dependabot_version_updates %}](/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/about-dependabot-version-updates)."
|
||||
@@ -121,6 +123,11 @@ Before you enable {% data variables.product.prodname_dependabot_updates %}, you
|
||||
|
||||

|
||||
|
||||
{% elsif ghes > 3.2 %}
|
||||
When you enable {% data variables.product.prodname_dependabot_alerts %}, you should consider also setting up {% data variables.product.prodname_actions %} for {% data variables.product.prodname_dependabot_security_updates %}. This feature allows developers to fix vulnerabilities in their dependencies. For more information, see "[Managing self-hosted runners for {% data variables.product.prodname_dependabot_updates %} on your enterprise](/admin/github-actions/enabling-github-actions-for-github-enterprise-server/managing-self-hosted-runners-for-dependabot-updates)."
|
||||
{% endif %}
|
||||
{% ifversion ghes > 3.2 %}
|
||||
|
||||
When you enable {% data variables.product.prodname_dependabot_alerts %}, you should consider also setting up {% data variables.product.prodname_actions %} for {% data variables.product.prodname_dependabot_security_updates %}. This feature allows developers to fix vulnerabilities in their dependencies. For more information, see "[Managing self-hosted runners for {% data variables.product.prodname_dependabot_updates %} on your enterprise](/admin/github-actions/enabling-github-actions-for-github-enterprise-server/managing-self-hosted-runners-for-dependabot-updates)."
|
||||
|
||||
If you need enhanced security, we recommend configuring {% data variables.product.prodname_dependabot %} to use private registries. For more information, see "[Managing encrypted secrets for {% data variables.product.prodname_dependabot %}](/code-security/dependabot/working-with-dependabot/managing-encrypted-secrets-for-dependabot)."
|
||||
|
||||
{% endif %}
|
||||
|
||||
@@ -18,7 +18,7 @@ topics:
|
||||
|
||||
SNMP 是一种用于通过网络监视设备的公共标准。 强烈建议启用 SNMP,以便监视 {% data variables.product.product_location %} 的健康状态并了解何时向主机增加更多内存、存储空间或处理器能力。
|
||||
|
||||
{% data variables.product.prodname_enterprise %} 采用标准 SNMP 安装,因此您可以充分利用 Nagios 或其他任何监视系统可用的[多种插件](http://www.monitoring-plugins.org/doc/man/check_snmp.html)。
|
||||
{% data variables.product.prodname_enterprise %} 采用标准 SNMP 安装,因此您可以充分利用 Nagios 或其他任何监视系统可用的[多种插件](https://www.monitoring-plugins.org/doc/man/check_snmp.html)。
|
||||
|
||||
## 配置 SNMP v2c
|
||||
|
||||
@@ -66,7 +66,7 @@ SNMP 是一种用于通过网络监视设备的公共标准。 强烈建议启
|
||||
|
||||
#### 查询 SNMP 数据
|
||||
|
||||
关于您的设备的硬件和软件级信息都适用于 SNMP v3。 由于 `noAuthNoPriv` 和 `authNoPriv` 安全等级缺乏加密和隐私,因此我们的结果 SNMP 报告中不包括 `hrSWRun` 表 (1.3.6.1.2.1.25.4.)。 如果您使用的是 `authPriv` 安全等级,我们将包括此表。 更多信息请参阅“[OID 参考文档](http://oidref.com/1.3.6.1.2.1.25.4)。
|
||||
关于您的设备的硬件和软件级信息都适用于 SNMP v3。 由于 `noAuthNoPriv` 和 `authNoPriv` 安全等级缺乏加密和隐私,因此我们的结果 SNMP 报告中不包括 `hrSWRun` 表 (1.3.6.1.2.1.25.4.)。 如果您使用的是 `authPriv` 安全等级,我们将包括此表。 更多信息请参阅“[OID 参考文档](https://oidref.com/1.3.6.1.2.1.25.4)。
|
||||
|
||||
如果使用 SNMP v2c,则仅会提供关于您的设备的硬件级信息。 {% data variables.product.prodname_enterprise %} 中的应用程序和服务未配置 OID 来报告指标。 有多个 MIB 可用,在网络中 SNMP 的支持下,在单独的工作站上运行 `smpwaste` 可以看到:
|
||||
|
||||
|
||||
@@ -682,7 +682,7 @@ Action | Description
|
||||
| `org.remove_actions_secret` | A {% data variables.product.prodname_actions %} secret was removed.
|
||||
| `org.remove_integration_secret` | A {% data variables.product.prodname_dependabot %}{% ifversion fpt or ghec %} or {% data variables.product.prodname_codespaces %}{% endif %} integration secret was removed from an organization.
|
||||
| `org.remove_billing_manager` | An owner removed a billing manager from an organization. {% ifversion fpt or ghec %}For more information, see "[Removing a billing manager from your organization](/organizations/managing-peoples-access-to-your-organization-with-roles/removing-a-billing-manager-from-your-organization)"{% endif %}{% ifversion not ghae %} or when [two-factor authentication was required in an organization](/organizations/keeping-your-organization-secure/managing-two-factor-authentication-for-your-organization/requiring-two-factor-authentication-in-your-organization) and a billing manager didn't use 2FA or disabled 2FA.{% endif %}
|
||||
| `org.remove_member` | An [owner removed a member from an organization](/organizations/managing-membership-in-your-organization/removing-a-member-from-your-organization){% ifversion not ghae %} or when [two-factor authentication was required in an organization](/organizations/keeping-your-organization-secure/managing-two-factor-authentication-for-your-organization/requiring-two-factor-authentication-in-your-organization) and an organization member doesn't use 2FA or disabled 2FA{% endif %}. Also an [organization member removed themselves](/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/removing-yourself-from-an-organization) from an organization.
|
||||
| `org.remove_member` | An [owner removed a member from an organization](/organizations/managing-membership-in-your-organization/removing-a-member-from-your-organization){% ifversion not ghae %} or when [two-factor authentication was required in an organization](/organizations/keeping-your-organization-secure/managing-two-factor-authentication-for-your-organization/requiring-two-factor-authentication-in-your-organization) and an organization member doesn't use 2FA or disabled 2FA{% endif %}. Also an [organization member removed themselves](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-membership-in-organizations/removing-yourself-from-an-organization) from an organization.
|
||||
| `org.remove_outside_collaborator` | An owner removed an outside collaborator from an organization{% ifversion not ghae %} or when [two-factor authentication was required in an organization](/organizations/keeping-your-organization-secure/managing-two-factor-authentication-for-your-organization/requiring-two-factor-authentication-in-your-organization) and an outside collaborator didn't use 2FA or disabled 2FA{% endif %}.
|
||||
| `org.remove_self_hosted_runner` | A self-hosted runner was removed. For more information, see "[Removing a runner from an organization](/actions/hosting-your-own-runners/removing-self-hosted-runners#removing-a-runner-from-an-organization)."
|
||||
| `org.rename` | An organization was renamed.
|
||||
|
||||
@@ -68,7 +68,15 @@ You can view more information about the person's access to your enterprise, such
|
||||
{% ifversion ghec %}
|
||||
## Viewing pending invitations
|
||||
|
||||
You can see all the pending invitations to become administrators, members, or outside collaborators in your enterprise. You can filter the list in useful ways, such as by organization. You can find a specific person by searching for their username or display name.
|
||||
You can see all the pending invitations to become members, administrators, or outside collaborators in your enterprise. You can filter the list in useful ways, such as by organization. You can find a specific person by searching for their username or display name.
|
||||
|
||||
In the list of pending members, for any individual account, you can cancel all invitations to join organizations owned by your enterprise. This does not cancel any invitations for that same person to become an enterprise administrator or outside collaborator.
|
||||
|
||||
{% note %}
|
||||
|
||||
**Note:** If an invitation was provisioned via SCIM, you must cancel the invitation via your identity provider (IdP) instead of on {% data variables.product.prodname_dotcom %}.
|
||||
|
||||
{% endnote %}
|
||||
|
||||
If you use {% data variables.product.prodname_vss_ghe %}, the list of pending invitations includes all {% data variables.product.prodname_vs %} subscribers that haven't joined any of your organizations on {% data variables.product.prodname_dotcom %}, even if the subscriber does not have a pending invitation to join an organization. For more information about how to get {% data variables.product.prodname_vs %} subscribers access to {% data variables.product.prodname_enterprise %}, see "[Setting up {% data variables.product.prodname_vss_ghe %}](/billing/managing-licenses-for-visual-studio-subscriptions-with-github-enterprise/setting-up-visual-studio-subscriptions-with-github-enterprise)."
|
||||
|
||||
@@ -77,7 +85,9 @@ If you use {% data variables.product.prodname_vss_ghe %}, the list of pending in
|
||||
1. Under "People", click **Pending invitations**.
|
||||
|
||||

|
||||
1. Optionally, to cancel all invitations for an account to join organizations owned by your enterprise, to the right of the account, click {% octicon "kebab-horizontal" aria-label="The horizontal kebab icon" %}, then click **Cancel invitation**.
|
||||
|
||||

|
||||
1. Optionally, to view pending invitations for enterprise administrators or outside collaborators, under "Pending members", click **Administrators** or **Outside collaborators**.
|
||||
|
||||

|
||||
|
||||
@@ -84,7 +84,7 @@ You can work with all repositories on {% data variables.product.product_name %}
|
||||
|
||||
If you authenticate with {% data variables.product.prodname_cli %}, you can either authenticate with a personal access token or via the web browser. For more information about authenticating with {% data variables.product.prodname_cli %}, see [`gh auth login`](https://cli.github.com/manual/gh_auth_login).
|
||||
|
||||
If you authenticate without {% data variables.product.prodname_cli %}, you must authenticate with a personal access token. {% data reusables.user-settings.password-authentication-deprecation %} Every time you use Git to authenticate with {% data variables.product.product_name %}, you'll be prompted to enter your credentials to authenticate with {% data variables.product.product_name %}, unless you cache them a [credential helper](/github/getting-started-with-github/caching-your-github-credentials-in-git).
|
||||
If you authenticate without {% data variables.product.prodname_cli %}, you must authenticate with a personal access token. {% data reusables.user-settings.password-authentication-deprecation %} Every time you use Git to authenticate with {% data variables.product.product_name %}, you'll be prompted to enter your credentials to authenticate with {% data variables.product.product_name %}, unless you cache them with a [credential helper](/github/getting-started-with-github/caching-your-github-credentials-in-git).
|
||||
|
||||
### SSH
|
||||
|
||||
|
||||
@@ -105,10 +105,10 @@ shortTitle: 安全日志
|
||||
|
||||
### `oauth_authority` 类别操作
|
||||
|
||||
| 操作 | 描述 |
|
||||
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `create` | 当您[授予 {% data variables.product.prodname_oauth_app %} 访问权限](/github/authenticating-to-github/keeping-your-account-and-data-secure/authorizing-oauth-apps)时触发。 |
|
||||
| `destroy` | Triggered when you [revoke an {% data variables.product.prodname_oauth_app %}'s access to your account](/articles/reviewing-your-authorized-integrations){% ifversion fpt or ghae or ghes > 3.2 or ghec %} and when [authorizations are revoked or expire](/github/authenticating-to-github/keeping-your-account-and-data-secure/token-expiration-and-revocation).{% else %}.{% endif %}
|
||||
| 操作 | 描述 |
|
||||
| --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `create` | 当您[授予 {% data variables.product.prodname_oauth_app %} 访问权限](/github/authenticating-to-github/keeping-your-account-and-data-secure/authorizing-oauth-apps)时触发。 |
|
||||
| `destroy` | 当您 [撤销 {% data variables.product.prodname_oauth_app %}对您帐户的访问](/articles/reviewing-your-authorized-integrations){% ifversion fpt or ghae or ghes > 3.2 or ghec %} 时,以及当 [授权被吊销或过期](/github/authenticating-to-github/keeping-your-account-and-data-secure/token-expiration-and-revocation)时触发。{% else %}。{% endif %}
|
||||
|
||||
{% ifversion fpt or ghec %}
|
||||
|
||||
@@ -174,25 +174,25 @@ shortTitle: 安全日志
|
||||
{% ifversion fpt or ghec %}
|
||||
### `sponsors` 类操作
|
||||
|
||||
| 操作 | 描述 |
|
||||
| --------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `custom_amount_settings_change` | 启用或禁用自定义金额时或更改建议的自定义金额时触发(请参阅“[管理您的赞助级别](/github/supporting-the-open-source-community-with-github-sponsors/managing-your-sponsorship-tiers)”) |
|
||||
| `repo_funding_links_file_action` | 更改仓库中的 FUNDING 文件时触发(请参阅“[在仓库中显示赞助按钮](/articles/displaying-a-sponsor-button-in-your-repository)”) |
|
||||
| `sponsor_sponsorship_cancel` | 当您取消赞助时触发(请参阅“[降级赞助](/articles/downgrading-a-sponsorship)”) |
|
||||
| `sponsor_sponsorship_create` | 当您赞助帐户时触发(请参阅“[赞助开源贡献者](/sponsors/sponsoring-open-source-contributors/sponsoring-an-open-source-contributor)”) |
|
||||
| `sponsor_sponsorship_payment_complete` | 当您赞助一个帐户并且您的付款已经处理完毕后触发(请参阅“[赞助开源贡献者](/sponsors/sponsoring-open-source-contributors/sponsoring-an-open-source-contributor)”) |
|
||||
| `sponsor_sponsorship_preference_change` | 当您更改是否接收被赞助开发者的电子邮件更新时触发(请参阅“[管理赞助](/sponsors/sponsoring-open-source-contributors/managing-your-sponsorship)”) |
|
||||
| `sponsor_sponsorship_tier_change` | 当您升级或降级赞助时触发(请参阅“[升级赞助](/articles/upgrading-a-sponsorship)”和“[降级赞助](/articles/downgrading-a-sponsorship)”) |
|
||||
| `sponsored_developer_approve` | 当您的 {% data variables.product.prodname_sponsors %} 帐户被批准时触发(请参阅“[为您的个人帐户设置 {% data variables.product.prodname_sponsors %}](/sponsors/receiving-sponsorships-through-github-sponsors/setting-up-github-sponsors-for-your-user-account)”) |
|
||||
| `sponsored_developer_create` | 当您的 {% data variables.product.prodname_sponsors %} 帐户创建时触发(请参阅“[为您的个人帐户设置 {% data variables.product.prodname_sponsors %}](/sponsors/receiving-sponsorships-through-github-sponsors/setting-up-github-sponsors-for-your-user-account)”) |
|
||||
| `sponsored_developer_disable` | 帐户 {% data variables.product.prodname_sponsors %} 禁用时触发 |
|
||||
| `sponsored_developer_redraft` | 当您的 {% data variables.product.prodname_sponsors %} 帐户从已批准状态恢复为草稿状态时触发 |
|
||||
| `sponsored_developer_profile_update` | 在编辑您的被赞助开发者个人资料时触发(请参阅“[编辑 {% data variables.product.prodname_sponsors %} 的个人资料详细信息](/sponsors/receiving-sponsorships-through-github-sponsors/editing-your-profile-details-for-github-sponsors)”) |
|
||||
| `sponsored_developer_request_approval` | 在您提交 {% data variables.product.prodname_sponsors %} 申请以供审批时触发(请参阅“[为您的个人帐户设置 {% data variables.product.prodname_sponsors %}](/sponsors/receiving-sponsorships-through-github-sponsors/setting-up-github-sponsors-for-your-user-account)”) |
|
||||
| `sponsored_developer_tier_description_update` | 当您更改赞助等级的说明时触发(请参阅“[管理赞助等级](/sponsors/receiving-sponsorships-through-github-sponsors/managing-your-sponsorship-tiers)”) |
|
||||
| `sponsored_developer_update_newsletter_send` | 当您向赞助者发送电子邮件更新时触发(请参阅“[联系赞助者](/sponsors/receiving-sponsorships-through-github-sponsors/contacting-your-sponsors)”) |
|
||||
| `waitlist_invite_sponsored_developer` | 当您从等候名单被邀请加入 {% data variables.product.prodname_sponsors %} 时触发(请参阅“[为您的个人帐户设置 {% data variables.product.prodname_sponsors %}](/sponsors/receiving-sponsorships-through-github-sponsors/setting-up-github-sponsors-for-your-user-account)”) |
|
||||
| `waitlist_join` | 当您加入成为被赞助开发者的等候名单时触发(请参阅“[为您的个人帐户设置 {% data variables.product.prodname_sponsors %}](/sponsors/receiving-sponsorships-through-github-sponsors/setting-up-github-sponsors-for-your-user-account)”) |
|
||||
| 操作 | 描述 |
|
||||
| --------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `custom_amount_settings_change` | 启用或禁用自定义金额时或更改建议的自定义金额时触发(请参阅“[管理您的赞助级别](/github/supporting-the-open-source-community-with-github-sponsors/managing-your-sponsorship-tiers)”) |
|
||||
| `repo_funding_links_file_action` | 更改仓库中的 FUNDING 文件时触发(请参阅“[在仓库中显示赞助按钮](/articles/displaying-a-sponsor-button-in-your-repository)”) |
|
||||
| `sponsor_sponsorship_cancel` | 当您取消赞助时触发(请参阅“[降级赞助](/articles/downgrading-a-sponsorship)”) |
|
||||
| `sponsor_sponsorship_create` | 当您赞助帐户时触发(请参阅“[赞助开源贡献者](/sponsors/sponsoring-open-source-contributors/sponsoring-an-open-source-contributor)”) |
|
||||
| `sponsor_sponsorship_payment_complete` | 当您赞助一个帐户并且您的付款已经处理完毕后触发(请参阅“[赞助开源贡献者](/sponsors/sponsoring-open-source-contributors/sponsoring-an-open-source-contributor)”) |
|
||||
| `sponsor_sponsorship_preference_change` | 当您更改是否接收被赞助开发者的电子邮件更新时触发(请参阅“[管理赞助](/sponsors/sponsoring-open-source-contributors/managing-your-sponsorship)”) |
|
||||
| `sponsor_sponsorship_tier_change` | 当您升级或降级赞助时触发(请参阅“[升级赞助](/articles/upgrading-a-sponsorship)”和“[降级赞助](/articles/downgrading-a-sponsorship)”) |
|
||||
| `sponsored_developer_approve` | Triggered when your {% data variables.product.prodname_sponsors %} account is approved (see "[Setting up {% data variables.product.prodname_sponsors %} for your personal account](/sponsors/receiving-sponsorships-through-github-sponsors/setting-up-github-sponsors-for-your-personal-account)") |
|
||||
| `sponsored_developer_create` | Triggered when your {% data variables.product.prodname_sponsors %} account is created (see "[Setting up {% data variables.product.prodname_sponsors %} for your personal account](/sponsors/receiving-sponsorships-through-github-sponsors/setting-up-github-sponsors-for-your-personal-account)") |
|
||||
| `sponsored_developer_disable` | 帐户 {% data variables.product.prodname_sponsors %} 禁用时触发 |
|
||||
| `sponsored_developer_redraft` | 当您的 {% data variables.product.prodname_sponsors %} 帐户从已批准状态恢复为草稿状态时触发 |
|
||||
| `sponsored_developer_profile_update` | 在编辑您的被赞助开发者个人资料时触发(请参阅“[编辑 {% data variables.product.prodname_sponsors %} 的个人资料详细信息](/sponsors/receiving-sponsorships-through-github-sponsors/editing-your-profile-details-for-github-sponsors)”) |
|
||||
| `sponsored_developer_request_approval` | Triggered when you submit your application for {% data variables.product.prodname_sponsors %} for approval (see "[Setting up {% data variables.product.prodname_sponsors %} for your personal account](/sponsors/receiving-sponsorships-through-github-sponsors/setting-up-github-sponsors-for-your-personal-account)") |
|
||||
| `sponsored_developer_tier_description_update` | 当您更改赞助等级的说明时触发(请参阅“[管理赞助等级](/sponsors/receiving-sponsorships-through-github-sponsors/managing-your-sponsorship-tiers)”) |
|
||||
| `sponsored_developer_update_newsletter_send` | 当您向赞助者发送电子邮件更新时触发(请参阅“[联系赞助者](/sponsors/receiving-sponsorships-through-github-sponsors/contacting-your-sponsors)”) |
|
||||
| `waitlist_invite_sponsored_developer` | Triggered when you are invited to join {% data variables.product.prodname_sponsors %} from the waitlist (see "[Setting up {% data variables.product.prodname_sponsors %} for your personal account](/sponsors/receiving-sponsorships-through-github-sponsors/setting-up-github-sponsors-for-your-personal-account)") |
|
||||
| `waitlist_join` | Triggered when you join the waitlist to become a sponsored developer (see "[Setting up {% data variables.product.prodname_sponsors %} for your personal account](/sponsors/receiving-sponsorships-through-github-sponsors/setting-up-github-sponsors-for-your-personal-account)") |
|
||||
{% endif %}
|
||||
|
||||
{% ifversion fpt or ghec %}
|
||||
|
||||
@@ -57,7 +57,7 @@ shortTitle: 更新访问凭据
|
||||
|
||||
{% ifversion not ghae %}
|
||||
|
||||
If you have reset your account password and would also like to trigger a sign-out from the {% data variables.product.prodname_mobile %} app, you can revoke your authorization of the "GitHub iOS" or "GitHub Android" OAuth App. This will sign out all instances of the {% data variables.product.prodname_mobile %} app associated with your account. 有关其他信息,请参阅“[>审查授权的集成](/authentication/keeping-your-account-and-data-secure/reviewing-your-authorized-integrations)”。
|
||||
如果您已重置帐户密码,并且还想触发从 {% data variables.product.prodname_mobile %} 应用程序注销,则可以撤销对“GitHub iOS”或“GitHub Android”OAuth 应用程序 的授权。 这将注销与您的帐户关联的 {% data variables.product.prodname_mobile %} 应用程序的所有实例。 有关其他信息,请参阅“[>审查授权的集成](/authentication/keeping-your-account-and-data-secure/reviewing-your-authorized-integrations)”。
|
||||
|
||||
{% endif %}
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ shortTitle: GitHub Actions 的计费
|
||||
|
||||
仓库使用的存储空间是 {% data variables.product.prodname_actions %} 构件和 {% data variables.product.prodname_registry %} 使用的存储空间总计。 您的存储成本是您帐户拥有的所有帐户的总使用量。 有关 {% data variables.product.prodname_registry %} 定价的更多信息,请参阅“[关于 {% data variables.product.prodname_registry %} 的计费](/billing/managing-billing-for-github-packages/about-billing-for-github-packages)”。
|
||||
|
||||
If your account's usage surpasses these limits and you have set a spending limit above $0 USD, you will pay $0.008 USD per GB of storage per day and per-minute usage depending on the operating system used by the {% data variables.product.prodname_dotcom %}-hosted runner. {% data variables.product.prodname_dotcom %} 将每个作业使用的分钟数舍入到最接近的分钟整数。
|
||||
如果您的帐户使用量超出了这些限额,并且您设置的支出限额高于 0 美元,则每天每 GB 存储用量和每分钟用量需要支付 0.008 美元,具体取决于 {% data variables.product.prodname_dotcom %} 托管运行器使用的操作系统。 {% data variables.product.prodname_dotcom %} 将每个作业使用的分钟数舍入到最接近的分钟整数。
|
||||
|
||||
{% note %}
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ One person may be able to complete the tasks because the person has all of the r
|
||||
**Tips**:
|
||||
|
||||
- While not required, we recommend that the organization owner sends an invitation to the same email address used for the subscriber's User Primary Name (UPN). When the email address on {% data variables.product.product_location %} matches the subscriber's UPN, you can ensure that another enterprise does not claim the subscriber's license.
|
||||
- If the subscriber accepts the invitation to the organization with an existing personal account on {% data variables.product.product_location %}, we recommend that the subscriber add the email address they use for {% data variables.product.prodname_vs %} to their personal account on {% data variables.product.product_location %}. For more information, see "[Adding an email address to your {% data variables.product.prodname_dotcom %} account](/account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/adding-an-email-address-to-your-github-account)."
|
||||
- If the subscriber accepts the invitation to the organization with an existing personal account on {% data variables.product.product_location %}, we recommend that the subscriber add the email address they use for {% data variables.product.prodname_vs %} to their personal account on {% data variables.product.product_location %}. For more information, see "[Adding an email address to your {% data variables.product.prodname_dotcom %} account](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/adding-an-email-address-to-your-github-account)."
|
||||
- If the organization owner must invite a large number of subscribers, a script may make the process faster. For more information, see [the sample PowerShell script](https://github.com/github/platform-samples/blob/master/api/powershell/invite_members_to_org.ps1) in the `github/platform-samples` repository.
|
||||
|
||||
{% endtip %}
|
||||
|
||||
@@ -42,7 +42,7 @@ topics:
|
||||
|
||||
对于 {% data variables.product.prodname_code_scanning %} 的所有配置,包含 {% data variables.product.prodname_code_scanning %} 结果的检查为:**{% data variables.product.prodname_code_scanning_capc %} 结果**。 所使用的每个分析工具的结果将单独显示。 由拉取请求中的更改引起的任何新警报都显示为注释。
|
||||
|
||||
{% ifversion fpt or ghes > 3.2 or ghae or ghec %} To see the full set of alerts for the analyzed branch, click **View all branch alerts**. 这将打开完整的警报视图,您可以在其中按类型、严重性、标记等筛选分支上的所有警报。 更多信息请参阅“[管理仓库的代码扫描警报](/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/managing-code-scanning-alerts-for-your-repository#filtering-and-searching-for-code-scanning-alerts)”。
|
||||
{% ifversion fpt or ghes > 3.2 or ghae or ghec %} 要查看所分析分支的完整警报集,请单击“**查看所有分支警报**”。 这将打开完整的警报视图,您可以在其中按类型、严重性、标记等筛选分支上的所有警报。 更多信息请参阅“[管理仓库的代码扫描警报](/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/managing-code-scanning-alerts-for-your-repository#filtering-and-searching-for-code-scanning-alerts)”。
|
||||
|
||||

|
||||
{% endif %}
|
||||
|
||||
@@ -55,7 +55,7 @@ topics:
|
||||
|
||||
{% note %}
|
||||
|
||||
**注意:** 在测试版期间,此功能仅适用于在 2022 年 4 月 14 日*之后*创建的新 Python 公告,以及历史 Python 公告的子集。 {% data variables.product.prodname_dotcom %} is working to backfill data across additional historical Python advisories, which are added on a rolling basis. 有漏洞的调用仅在 {% data variables.product.prodname_dependabot_alerts %} 页面上突出显示。
|
||||
**注意:** 在测试版期间,此功能仅适用于在 2022 年 4 月 14 日*之后*创建的新 Python 公告,以及历史 Python 公告的子集。 {% data variables.product.prodname_dotcom %} 正在努力回填其他历史 Python 公告的数据,这些公告是滚动添加的。 有漏洞的调用仅在 {% data variables.product.prodname_dependabot_alerts %} 页面上突出显示。
|
||||
|
||||
{% endnote %}
|
||||
|
||||
@@ -65,7 +65,7 @@ topics:
|
||||
|
||||
对于检测到有漏洞的调用的警报,警报详细信息页面将显示其他信息:
|
||||
|
||||
- One or more code blocks showing where the function is used.
|
||||
- 一个或多个代码块,显示函数的使用位置。
|
||||
- 列出函数本身以及指向调用函数的行的链接的注释。
|
||||
|
||||

|
||||
|
||||
@@ -61,7 +61,7 @@ If security updates are not enabled for your repository and you don't know why,
|
||||
You can enable or disable {% data variables.product.prodname_dependabot_security_updates %} for an individual repository (see below).
|
||||
|
||||
|
||||
You can also enable or disable {% data variables.product.prodname_dependabot_security_updates %} for all repositories owned by your personal account or organization. For more information, see "[Managing security and analysis settings for your personal account](/github/setting-up-and-managing-your-github-user-account/managing-security-and-analysis-settings-for-your-user-account)" or "[Managing security and analysis settings for your organization](/organizations/keeping-your-organization-secure/managing-security-and-analysis-settings-for-your-organization)."
|
||||
You can also enable or disable {% data variables.product.prodname_dependabot_security_updates %} for all repositories owned by your personal account or organization. For more information, see "[Managing security and analysis settings for your personal account](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-personal-account-settings/managing-security-and-analysis-settings-for-your-personal-account)" or "[Managing security and analysis settings for your organization](/organizations/keeping-your-organization-secure/managing-security-and-analysis-settings-for-your-organization)."
|
||||
|
||||
{% data variables.product.prodname_dependabot_security_updates %} require specific repository settings. For more information, see "[Supported repositories](#supported-repositories)."
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ shortTitle: Dependabot 版本更新
|
||||
|
||||
{% data variables.product.prodname_dependabot %} 负责维护您的依赖项。 您可以使用它来确保仓库自动跟上它所依赖的包和应用程序的最新版本。
|
||||
|
||||
You enable {% data variables.product.prodname_dependabot_version_updates %} by checking a _dependabot.yml_ configuration file into your repository. 配置文件指定存储在仓库中的清单或其他包定义文件的位置。 {% data variables.product.prodname_dependabot %} 使用此信息来检查过时的软件包和应用程序。 {% data variables.product.prodname_dependabot %} 确定依赖项是否有新版本,它通过查看依赖的语义版本 ([semver](https://semver.org/)) 来决定是否应更新该版本。 对于某些软件包管理器,{% data variables.product.prodname_dependabot_version_updates %} 也支持供应。 供应(或缓存)的依赖项是检入仓库中特定目录的依赖项,而不是在清单中引用的依赖项。 即使包服务器不可用,供应的依赖项在生成时也可用。 {% data variables.product.prodname_dependabot_version_updates %} 可以配置为检查为新版本供应的依赖项,并在必要时更新它们。
|
||||
通过将 _dependabot.yml_ 配置文件检入仓库,可启用 {% data variables.product.prodname_dependabot_version_updates %}。 配置文件指定存储在仓库中的清单或其他包定义文件的位置。 {% data variables.product.prodname_dependabot %} 使用此信息来检查过时的软件包和应用程序。 {% data variables.product.prodname_dependabot %} 确定依赖项是否有新版本,它通过查看依赖的语义版本 ([semver](https://semver.org/)) 来决定是否应更新该版本。 对于某些软件包管理器,{% data variables.product.prodname_dependabot_version_updates %} 也支持供应。 供应(或缓存)的依赖项是检入仓库中特定目录的依赖项,而不是在清单中引用的依赖项。 即使包服务器不可用,供应的依赖项在生成时也可用。 {% data variables.product.prodname_dependabot_version_updates %} 可以配置为检查为新版本供应的依赖项,并在必要时更新它们。
|
||||
|
||||
当 {% data variables.product.prodname_dependabot %} 发现过时的依赖项时,它会发起拉取请求以将清单更新到依赖项的最新版本。 对于供应和依赖项,{% data variables.product.prodname_dependabot %} 提出拉取请求以直接将过时的依赖项替换为新版本。 检查测试是否通过,查看拉取请求摘要中包含的更改日志和发行说明,然后合并它。 更多信息请参阅“[配置 {% data variables.product.prodname_dependabot %} 版本更新](/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/enabling-and-disabling-dependabot-version-updates)”。
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ For more information, see "[Exploring the dependencies of a repository](/code-se
|
||||
{% data reusables.dependabot.dependabot-alerts-beta %}
|
||||
{% data reusables.dependabot.dependabot-alerts-dependency-graph-enterprise %}
|
||||
|
||||
For more information, see "[About {% data variables.product.prodname_dependabot_alerts %}](/code-security/supply-chain-security/about-alerts-for-vulnerable-dependencies){% ifversion fpt or ghec %}" and "[Managing security and analysis settings for your personal account](/github/setting-up-and-managing-your-github-user-account/managing-security-and-analysis-settings-for-your-user-account){% endif %}."
|
||||
For more information, see "[About {% data variables.product.prodname_dependabot_alerts %}](/code-security/supply-chain-security/about-alerts-for-vulnerable-dependencies){% ifversion fpt or ghec %}" and "[Managing security and analysis settings for your personal account](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-personal-account-settings/managing-security-and-analysis-settings-for-your-personal-account){% endif %}."
|
||||
|
||||
{% endif %}
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ shortTitle: 关于安全概述
|
||||
|
||||
{% ifversion ghec or ghes > 3.4 or ghae-issue-6199 %}
|
||||
### 关于企业级安全性概述
|
||||
在企业级别,安全性概述显示企业的综合和存储库特定的安全信息。 You can view repositories owned by your enterprise that have security alerts, view all security alerts, or security feature-specific alerts from across your enterprise.
|
||||
在企业级别,安全性概述显示企业的综合和存储库特定的安全信息。 您可以查看企业拥有的具有安全警报的存储库,查看所有安全警报或整个企业中特定于安全功能的警报。
|
||||
|
||||
企业中组织的组织所有者和安全管理员对企业级安全概述的访问权限也有限。 他们只能查看他们具有完全访问权限的组织的存储库和警报。
|
||||
|
||||
|
||||
@@ -19,6 +19,8 @@ topics:
|
||||
|
||||
端到端软件供应链安全的核心是确保您分发的代码未被篡改。 以前,攻击者专注于针对您使用的依赖项,例如库和框架。 攻击者现在已经扩大了他们的关注点,包括针对用户帐户和构建过程,因此这些系统也必须得到保护。
|
||||
|
||||
For information about features in {% data variables.product.prodname_dotcom %} that can help you secure dependencies, see "[About supply chain security](/code-security/supply-chain-security/understanding-your-software-supply-chain/about-supply-chain-security)."
|
||||
|
||||
## 关于这些指南
|
||||
|
||||
本系列指南介绍了如何考虑保护端到端供应链:个人帐户、代码和构建流程。 每本指南都解释了该领域的风险,并介绍可帮助您解决该风险的 {% data variables.product.product_name %} 功能。
|
||||
|
||||
@@ -37,6 +37,8 @@ redirect_from:
|
||||
|
||||
依赖项审查支持与依赖关系图相同的语言和包管理生态系统。 更多信息请参阅“[关于依赖关系图](/github/visualizing-repository-data-with-graphs/about-the-dependency-graph#supported-package-ecosystems)”。
|
||||
|
||||
For more information on supply chain features available on {% data variables.product.product_name %}, see "[About supply chain security](/code-security/supply-chain-security/understanding-your-software-supply-chain/about-supply-chain-security)."
|
||||
|
||||
{% ifversion ghec or ghes %}
|
||||
## 启用依赖项审查
|
||||
|
||||
|
||||
@@ -54,6 +54,10 @@ Other supply chain features on {% data variables.product.prodname_dotcom %} rely
|
||||
{% data variables.product.prodname_dependabot %} cross-references dependency data provided by the dependency graph with the list of known vulnerabilities published in the {% data variables.product.prodname_advisory_database %}, scans your dependencies and generates {% data variables.product.prodname_dependabot_alerts %} when a potential vulnerability is detected.
|
||||
{% endif %}
|
||||
|
||||
{% ifversion fpt or ghec or ghes %}
|
||||
For best practice guides on end-to-end supply chain security including the protection of personal accounts, code, and build processes, see "[Securing your end-to-end supply chain](/code-security/supply-chain-security/end-to-end-supply-chain/end-to-end-supply-chain-overview)."
|
||||
{% endif %}
|
||||
|
||||
## Feature overview
|
||||
|
||||
### What is the dependency graph
|
||||
@@ -129,7 +133,7 @@ Public repositories:
|
||||
- **Dependency graph**—enabled by default and cannot be disabled.
|
||||
- **Dependency review**—enabled by default and cannot be disabled.
|
||||
- **{% data variables.product.prodname_dependabot_alerts %}**—not enabled by default. {% data variables.product.prodname_dotcom %} detects vulnerable dependencies and displays information in the dependency graph, but does not generate {% data variables.product.prodname_dependabot_alerts %} by default. Repository owners or people with admin access can enable {% data variables.product.prodname_dependabot_alerts %}.
|
||||
You can also enable or disable Dependabot alerts for all repositories owned by your user account or organization. For more information, see "[Managing security and analysis settings for your user account](/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-security-and-analysis-settings-for-your-user-account)" or "[Managing security and analysis settings for your organization](/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-security-and-analysis-settings-for-your-organization)."
|
||||
You can also enable or disable Dependabot alerts for all repositories owned by your user account or organization. For more information, see "[Managing security and analysis settings for your user account](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-personal-account-settings/managing-security-and-analysis-settings-for-your-personal-account)" or "[Managing security and analysis settings for your organization](/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-security-and-analysis-settings-for-your-organization)."
|
||||
|
||||
Private repositories:
|
||||
- **Dependency graph**—not enabled by default. The feature can be enabled by repository administrators. For more information, see "[Exploring the dependencies of a repository](/code-security/supply-chain-security/understanding-your-software-supply-chain/exploring-the-dependencies-of-a-repository#enabling-and-disabling-the-dependency-graph-for-a-private-repository)."
|
||||
@@ -139,7 +143,7 @@ Private repositories:
|
||||
- **Dependency review**—available in private repositories owned by organizations provided you have a license for {% data variables.product.prodname_GH_advanced_security %} and the dependency graph enabled. For more information, see "[About {% data variables.product.prodname_GH_advanced_security %}](/get-started/learning-about-github/about-github-advanced-security)" and "[Exploring the dependencies of a repository](/code-security/supply-chain-security/understanding-your-software-supply-chain/exploring-the-dependencies-of-a-repository#enabling-and-disabling-the-dependency-graph-for-a-private-repository)."
|
||||
{% endif %}
|
||||
- **{% data variables.product.prodname_dependabot_alerts %}**—not enabled by default. Owners of private repositories, or people with admin access, can enable {% data variables.product.prodname_dependabot_alerts %} by enabling the dependency graph and {% data variables.product.prodname_dependabot_alerts %} for their repositories.
|
||||
You can also enable or disable Dependabot alerts for all repositories owned by your user account or organization. For more information, see "[Managing security and analysis settings for your user account](/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-security-and-analysis-settings-for-your-user-account)" or "[Managing security and analysis settings for your organization](/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-security-and-analysis-settings-for-your-organization)."
|
||||
You can also enable or disable Dependabot alerts for all repositories owned by your user account or organization. For more information, see "[Managing security and analysis settings for your user account](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-personal-account-settings/managing-security-and-analysis-settings-for-your-personal-account)" or "[Managing security and analysis settings for your organization](/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-security-and-analysis-settings-for-your-organization)."
|
||||
|
||||
Any repository type:
|
||||
- **{% data variables.product.prodname_dependabot_security_updates %}**—not enabled by default. You can enable {% data variables.product.prodname_dependabot_security_updates %} for any repository that uses {% data variables.product.prodname_dependabot_alerts %} and the dependency graph. For information about enabling security updates, see "[Configuring {% data variables.product.prodname_dependabot_security_updates %}](/code-security/dependabot/dependabot-security-updates/configuring-dependabot-security-updates)."
|
||||
|
||||
@@ -44,6 +44,8 @@ The dependency graph includes all the dependencies of a repository that are deta
|
||||
|
||||
The dependency graph identifies indirect dependencies{% ifversion fpt or ghec %} either explicitly from a lock file or by checking the dependencies of your direct dependencies. For the most reliable graph, you should use lock files (or their equivalent) because they define exactly which versions of the direct and indirect dependencies you currently use. If you use lock files, you also ensure that all contributors to the repository are using the same versions, which will make it easier for you to test and debug code{% else %} from the lock files{% endif %}.
|
||||
|
||||
For more information on how {% data variables.product.product_name %} helps you understand the dependencies in your environment, see "[About supply chain security](/code-security/supply-chain-security/understanding-your-software-supply-chain/about-supply-chain-security)."
|
||||
|
||||
{% ifversion fpt or ghec %}
|
||||
|
||||
## Dependents included
|
||||
|
||||
@@ -42,7 +42,7 @@ shortTitle: 灾难恢复
|
||||
|
||||
## 选项 4:对本地容器化环境使用远程容器和 Docker
|
||||
|
||||
如果您的存储库具有 `devconconer.json`,请考虑在 Visual Studio Code 中使用[远程容器扩展](https://code.visualstudio.com/docs/remote/containers#_quick-start-open-a-git-repository-or-github-pr-in-an-isolated-container-volume)构建并连接到仓库的本地开发容器。 此选项的设置时间将因您本地规格和开发容器设置的复杂性而异。
|
||||
If your repository has a `devcontainer.json`, consider using the [Remote-Containers extension](https://code.visualstudio.com/docs/remote/containers#_quick-start-open-a-git-repository-or-github-pr-in-an-isolated-container-volume) in {% data variables.product.prodname_vscode %} to build and attach to a local development container for your repository. 此选项的设置时间将因您本地规格和开发容器设置的复杂性而异。
|
||||
|
||||
{% note %}
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ shortTitle: 代码空间中的安全性
|
||||
|
||||
### 身份验证
|
||||
|
||||
您可以使用 Web 浏览器或从 Visual Studio Code 连接到代码空间。 如果从 Visual Studio Code 进行连接,系统将提示您使用 {% data variables.product.product_name %} 进行身份验证。
|
||||
You can connect to a codespace using a web browser or from {% data variables.product.prodname_vscode %}. If you connect from {% data variables.product.prodname_vscode_shortname %}, you are prompted to authenticate with {% data variables.product.product_name %}.
|
||||
|
||||
每次创建或重新启动代码空间时,都会为其分配一个具有自动到期期的新 {% data variables.product.company_short %} 令牌。 此时间段允许您在代码空间中工作,而无需在典型的工作日内重新进行身份验证,但降低了在停止使用代码空间时使连接保持打开状态的可能性。
|
||||
|
||||
@@ -109,4 +109,4 @@ shortTitle: 代码空间中的安全性
|
||||
|
||||
#### 使用扩展
|
||||
|
||||
您安装的任何其他 {% data variables.product.prodname_vscode %} 扩展都可能带来更多风险。 为了帮助降低此风险,请确保仅安装受信任的扩展,并使它们始终保持最新。
|
||||
您安装的任何其他 {% data variables.product.prodname_vscode_shortname %} 扩展都可能带来更多风险。 为了帮助降低此风险,请确保仅安装受信任的扩展,并使它们始终保持最新。
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: Using GitHub Copilot in Codespaces
|
||||
intro: You can use Copilot in Codespaces by adding the extension.
|
||||
title: 在 Codespaces 中使用 GitHub Copilot
|
||||
intro: 您可以通过添加扩展在 Codespaces 中使用 Copilot。
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghec: '*'
|
||||
@@ -10,14 +10,14 @@ topics:
|
||||
- Copilot
|
||||
- Visual Studio Code
|
||||
product: '{% data reusables.gated-features.codespaces %}'
|
||||
shortTitle: Copilot in Codespaces
|
||||
shortTitle: Codespaces 中的 Copilot
|
||||
redirect_from:
|
||||
- /codespaces/codespaces-reference/using-copilot-in-codespaces
|
||||
---
|
||||
|
||||
## Using {% data variables.product.prodname_copilot %}
|
||||
## 使用 {% data variables.product.prodname_copilot %}
|
||||
|
||||
[{% data variables.product.prodname_copilot %}](https://copilot.github.com/), an AI pair programmer, can be used in any codespace. To start using {% data variables.product.prodname_copilot_short %} in {% data variables.product.prodname_codespaces %}, install the [{% data variables.product.prodname_copilot_short %} extension from the {% data variables.product.prodname_vscode %} marketplace](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot).
|
||||
[{% data variables.product.prodname_copilot %}](https://copilot.github.com/) 是 AI 对编程工具,可用于任何代码空间。 To start using {% data variables.product.prodname_copilot_short %} in {% data variables.product.prodname_codespaces %}, install the [{% data variables.product.prodname_copilot_short %} extension from the {% data variables.product.prodname_vscode_marketplace %}](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot).
|
||||
|
||||
To include {% data variables.product.prodname_copilot_short %}, or other extensions, in all of your codespaces, enable Settings Sync. For more information, see "[Personalizing {% data variables.product.prodname_codespaces %} for your account](/codespaces/customizing-your-codespace/personalizing-codespaces-for-your-account#settings-sync)." Additionally, to include {% data variables.product.prodname_copilot_short %} in a given project for all users, you can specify `GitHub.copilot` as an extension in your `devcontainer.json` file. For information about configuring a `devcontainer.json` file, see "[Introduction to dev containers](/codespaces/customizing-your-codespace/configuring-codespaces-for-your-project#creating-a-custom-dev-container-configuration)."
|
||||
要在所有代码空间中包含 {% data variables.product.prodname_copilot_short %} 或其他扩展,请启用“设置同步”。 更多信息请参阅“[为帐户个性化 {% data variables.product.prodname_codespaces %}](/codespaces/customizing-your-codespace/personalizing-codespaces-for-your-account#settings-sync)”。 此外,要在所有用户的给定项目中包含 {% data variables.product.prodname_copilot_short %},可以在 `devcontainer.json` 文件中指定 `GitHub.copilot` 作为扩展名。 有关配置 `devcontainer.json` 文件的信息,请参阅“[开发容器简介](/codespaces/customizing-your-codespace/configuring-codespaces-for-your-project#creating-a-custom-dev-container-configuration)”。
|
||||
|
||||
|
||||
@@ -15,13 +15,13 @@ redirect_from:
|
||||
- /codespaces/codespaces-reference/using-the-command-palette-in-codespaces
|
||||
---
|
||||
|
||||
## 关于 {% data variables.product.prodname_vscode %} 命令面板
|
||||
## 关于 {% data variables.product.prodname_vscode_command_palette %}
|
||||
|
||||
命令调色板是 {% data variables.product.prodname_vscode %} 的重点功能之一,可用于代码空间。 {% data variables.product.prodname_vscode_command_palette %} 允许您访问 {% data variables.product.prodname_codespaces %} 和 {% data variables.product.prodname_vscode %} 的许多命令。 有关使用 {% data variables.product.prodname_vscode_command_palette %} 的更多信息,请参阅 visual Studio Code 文档中的 “[用户界面](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette)”。
|
||||
命令调色板是 {% data variables.product.prodname_vscode %} 的重点功能之一,可用于代码空间。 {% data variables.product.prodname_vscode_command_palette %} 允许您访问 {% data variables.product.prodname_codespaces %} 和 {% data variables.product.prodname_vscode_shortname %} 的许多命令。 For more information on using the {% data variables.product.prodname_vscode_command_palette_shortname %}, see "[User Interface](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette)" in the {% data variables.product.prodname_vscode_shortname %} documentation.
|
||||
|
||||
## 访问 {% data variables.product.prodname_vscode_command_palette %}
|
||||
## 访问 {% data variables.product.prodname_vscode_command_palette_shortname %}
|
||||
|
||||
您可以通过多种方式访问 {% data variables.product.prodname_vscode_command_palette %}。
|
||||
您可以通过多种方式访问 {% data variables.product.prodname_vscode_command_palette_shortname %}。
|
||||
|
||||
- <kbd>Shift</kbd>+<kbd>Command</kbd>+<kbd>P</kbd> (Mac) / <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> (Windows/Linux)。
|
||||
|
||||
@@ -33,7 +33,7 @@ redirect_from:
|
||||
|
||||
## {% data variables.product.prodname_github_codespaces %} 命令
|
||||
|
||||
要查看与 {% data variables.product.prodname_github_codespaces %} 相关的所有命令, [访问 {% data variables.product.prodname_vscode_command_palette %}](#accessing-the-command-palette),然后开始键入 "Codespaces"。
|
||||
要查看与 {% data variables.product.prodname_github_codespaces %} 相关的所有命令, [访问 {% data variables.product.prodname_vscode_command_palette_shortname %}](#accessing-the-command-palette),然后开始键入 "Codespaces"。
|
||||
|
||||

|
||||
|
||||
@@ -41,13 +41,13 @@ redirect_from:
|
||||
|
||||
如果添加新密钥或更换机器类型,则必须停止并重新启动代码空间才能应用更改。
|
||||
|
||||
要暂停或停止代码空间的容器,[访问 {% data variables.product.prodname_vscode_command_palette %}](#accessing-the-command-palette),然后开始键入"stop"。 选择 **Codespaces: Stop Current Codespace(Codespace:停止当前 Codespace)**。
|
||||
要暂停或停止代码空间的容器,[访问 {% data variables.product.prodname_vscode_command_palette_shortname %}](#accessing-the-command-palette),然后开始键入"stop"。 选择 **Codespaces: Stop Current Codespace(Codespace:停止当前 Codespace)**。
|
||||
|
||||

|
||||
|
||||
### 从模板添加开发容器
|
||||
|
||||
要从模板添加开发容器,[访问 {% data variables.product.prodname_vscode_command_palette %}](#accessing-the-command-palette),然后开始键入 "dev container"。 选择 **Codespaces: Add Development Container Configuration Files...(Codespaces:添加开发容器配置文件...)**
|
||||
要从模板添加开发容器,[访问 {% data variables.product.prodname_vscode_command_palette_shortname %}](#accessing-the-command-palette),然后开始键入 "dev container"。 选择 **Codespaces: Add Development Container Configuration Files...(Codespaces:添加开发容器配置文件...)**
|
||||
|
||||

|
||||
|
||||
@@ -55,14 +55,14 @@ redirect_from:
|
||||
|
||||
如果您添加 dev 容器或编辑任何配置文件(`devcontainer.json` 和 `Dockerfile`),则需要重建代码空间才可应用更改。
|
||||
|
||||
要重建容器,[访问 {% data variables.product.prodname_vscode_command_palette %}](#accessing-the-command-palette),然后开始键入 "rebuild"。 选择 **Codespaces: Rebuild Container(代码空间:重建容器)**。
|
||||
要重建容器,[访问 {% data variables.product.prodname_vscode_command_palette_shortname %}](#accessing-the-command-palette),然后开始键入 "rebuild"。 选择 **Codespaces: Rebuild Container(代码空间:重建容器)**。
|
||||
|
||||

|
||||
|
||||
### Codespaces 日志
|
||||
|
||||
可以使用 {% data variables.product.prodname_vscode_command_palette %} 访问代码空间创建日志,也可以使用它导出所有日志。
|
||||
可以使用 {% data variables.product.prodname_vscode_command_palette_shortname %} 访问代码空间创建日志,也可以使用它导出所有日志。
|
||||
|
||||
要检索 Codespaces 的日志,[访问 {% data variables.product.prodname_vscode_command_palette %}](#accessing-the-command-palette),然后开始键入 "log"。 选择 **Codespaces: Export Logs(Codespaces:导出日志)**以导出所有与 Codespaces 相关的日志,或选择 **Codespaces: View Creation Logs(Codespaces:查看创建日志)**以查看与设置相关的日志。
|
||||
要检索 Codespaces 的日志,[访问 {% data variables.product.prodname_vscode_command_palette_shortname %}](#accessing-the-command-palette),然后开始键入 "log"。 选择 **Codespaces: Export Logs(Codespaces:导出日志)**以导出所有与 Codespaces 相关的日志,或选择 **Codespaces: View Creation Logs(Codespaces:查看创建日志)**以查看与设置相关的日志。
|
||||
|
||||

|
||||
|
||||
@@ -35,7 +35,7 @@ shortTitle: 创建代码空间
|
||||
|
||||
有关代码空间生命周期的更多信息,请参阅“[代码空间生命周期](/codespaces/developing-in-codespaces/codespaces-lifecycle)”。
|
||||
|
||||
如果要将 Git 挂钩用于代码空间,则应在步骤 4 中使用 [`devcontainer.json` 生命周期脚本](https://code.visualstudio.com/docs/remote/devcontainerjson-reference#_lifecycle-scripts)设置挂钩,例如 `postCreateCommand`。 由于代码空间容器是在克隆仓库后创建的,因此在容器映像中配置的任何 [git template directory](https://git-scm.com/docs/git-init#_template_directory) 将不适用于代码空间。 在创建代码空间后,必须改为安装挂钩。 有关使用 `postCreateCommand` 的更多信息,请参阅 visual Studio Code 文档中的 [`devcontainer.json` 参考](https://code.visualstudio.com/docs/remote/devcontainerjson-reference#_devcontainerjson-properties) 。
|
||||
如果要将 Git 挂钩用于代码空间,则应在步骤 4 中使用 [`devcontainer.json` 生命周期脚本](https://code.visualstudio.com/docs/remote/devcontainerjson-reference#_lifecycle-scripts)设置挂钩,例如 `postCreateCommand`。 由于代码空间容器是在克隆仓库后创建的,因此在容器映像中配置的任何 [git template directory](https://git-scm.com/docs/git-init#_template_directory) 将不适用于代码空间。 在创建代码空间后,必须改为安装挂钩。 For more information on using `postCreateCommand`, see the [`devcontainer.json` reference](https://code.visualstudio.com/docs/remote/devcontainerjson-reference#_devcontainerjson-properties) in the {% data variables.product.prodname_vscode_shortname %} documentation.
|
||||
|
||||
{% data reusables.codespaces.use-visual-studio-features %}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ shortTitle: Develop in a codespace
|
||||
4. Panels - This is where you can see output and debug information, as well as the default place for the integrated Terminal.
|
||||
5. Status Bar - This area provides you with useful information about your codespace and project. For example, the branch name, configured ports, and more.
|
||||
|
||||
For more information on using {% data variables.product.prodname_vscode %}, see the [User Interface guide](https://code.visualstudio.com/docs/getstarted/userinterface) in the {% data variables.product.prodname_vscode %} documentation.
|
||||
For more information on using {% data variables.product.prodname_vscode_shortname %}, see the [User Interface guide](https://code.visualstudio.com/docs/getstarted/userinterface) in the {% data variables.product.prodname_vscode_shortname %} documentation.
|
||||
|
||||
{% data reusables.codespaces.connect-to-codespace-from-vscode %}
|
||||
|
||||
@@ -54,7 +54,7 @@ For more information on using {% data variables.product.prodname_vscode %}, see
|
||||
|
||||
### Using the {% data variables.product.prodname_vscode_command_palette %}
|
||||
|
||||
The {% data variables.product.prodname_vscode_command_palette %} allows you to access and manage many features for {% data variables.product.prodname_codespaces %} and {% data variables.product.prodname_vscode %}. For more information, see "[Using the {% data variables.product.prodname_vscode_command_palette %} in {% data variables.product.prodname_codespaces %}](/codespaces/codespaces-reference/using-the-vs-code-command-palette-in-codespaces)."
|
||||
The {% data variables.product.prodname_vscode_command_palette %} allows you to access and manage many features for {% data variables.product.prodname_codespaces %} and {% data variables.product.prodname_vscode_shortname %}. For more information, see "[Using the {% data variables.product.prodname_vscode_command_palette_shortname %} in {% data variables.product.prodname_codespaces %}](/codespaces/codespaces-reference/using-the-vs-code-command-palette-in-codespaces)."
|
||||
|
||||
## Navigating to an existing codespace
|
||||
|
||||
|
||||
@@ -20,17 +20,17 @@ shortTitle: Visual Studio Code
|
||||
|
||||
## About {% data variables.product.prodname_codespaces %} in {% data variables.product.prodname_vscode %}
|
||||
|
||||
You can use your local install of {% data variables.product.prodname_vscode %} to create, manage, work in, and delete codespaces. To use {% data variables.product.prodname_codespaces %} in {% data variables.product.prodname_vscode %}, you need to install the {% data variables.product.prodname_github_codespaces %} extension. For more information on setting up Codespaces in {% data variables.product.prodname_vscode %}, see "[Prerequisites](#prerequisites)."
|
||||
You can use your local install of {% data variables.product.prodname_vscode %} to create, manage, work in, and delete codespaces. To use {% data variables.product.prodname_codespaces %} in {% data variables.product.prodname_vscode_shortname %}, you need to install the {% data variables.product.prodname_github_codespaces %} extension. For more information on setting up Codespaces in {% data variables.product.prodname_vscode_shortname %}, see "[Prerequisites](#prerequisites)."
|
||||
|
||||
By default, if you create a new codespace on {% data variables.product.prodname_dotcom_the_website %}, it will open in the browser. If you would prefer to open any new codespaces in {% data variables.product.prodname_vscode %} automatically, you can set your default editor to be {% data variables.product.prodname_vscode %}. For more information, see "[Setting your default editor for {% data variables.product.prodname_codespaces %}](/codespaces/managing-your-codespaces/setting-your-default-editor-for-codespaces)."
|
||||
By default, if you create a new codespace on {% data variables.product.prodname_dotcom_the_website %}, it will open in the browser. If you would prefer to open any new codespaces in {% data variables.product.prodname_vscode_shortname %} automatically, you can set your default editor to be {% data variables.product.prodname_vscode_shortname %}. For more information, see "[Setting your default editor for {% data variables.product.prodname_codespaces %}](/codespaces/managing-your-codespaces/setting-your-default-editor-for-codespaces)."
|
||||
|
||||
If you prefer to work in the browser, but want to continue using your existing {% data variables.product.prodname_vscode %} extensions, themes, and shortcuts, you can turn on Settings Sync. For more information, see "[Personalizing {% data variables.product.prodname_codespaces %} for your account](/codespaces/customizing-your-codespace/personalizing-codespaces-for-your-account#settings-sync)."
|
||||
If you prefer to work in the browser, but want to continue using your existing {% data variables.product.prodname_vscode_shortname %} extensions, themes, and shortcuts, you can turn on Settings Sync. For more information, see "[Personalizing {% data variables.product.prodname_codespaces %} for your account](/codespaces/customizing-your-codespace/personalizing-codespaces-for-your-account#settings-sync)."
|
||||
|
||||
## Prerequisites
|
||||
|
||||
To develop in a codespace directly in {% data variables.product.prodname_vscode %}, you must install and sign into the {% data variables.product.prodname_github_codespaces %} extension with your {% data variables.product.product_name %} credentials. The {% data variables.product.prodname_github_codespaces %} extension requires {% data variables.product.prodname_vscode %} October 2020 Release 1.51 or later.
|
||||
To develop in a codespace directly in {% data variables.product.prodname_vscode_shortname %}, you must install and sign into the {% data variables.product.prodname_github_codespaces %} extension with your {% data variables.product.product_name %} credentials. The {% data variables.product.prodname_github_codespaces %} extension requires {% data variables.product.prodname_vscode_shortname %} October 2020 Release 1.51 or later.
|
||||
|
||||
Use the {% data variables.product.prodname_vs %} Marketplace to install the [{% data variables.product.prodname_github_codespaces %}](https://marketplace.visualstudio.com/items?itemName=GitHub.codespaces) extension. For more information, see [Extension Marketplace](https://code.visualstudio.com/docs/editor/extension-gallery) in the {% data variables.product.prodname_vscode %} documentation.
|
||||
Use the {% data variables.product.prodname_vscode_marketplace %} to install the [{% data variables.product.prodname_github_codespaces %}](https://marketplace.visualstudio.com/items?itemName=GitHub.codespaces) extension. For more information, see [Extension Marketplace](https://code.visualstudio.com/docs/editor/extension-gallery) in the {% data variables.product.prodname_vscode_shortname %} documentation.
|
||||
|
||||
|
||||
{% mac %}
|
||||
@@ -40,8 +40,8 @@ Use the {% data variables.product.prodname_vs %} Marketplace to install the [{%
|
||||
|
||||

|
||||
|
||||
1. To authorize {% data variables.product.prodname_vscode %} to access your account on {% data variables.product.product_name %}, click **Allow**.
|
||||
1. Sign in to {% data variables.product.product_name %} to approve the extension.
|
||||
2. To authorize {% data variables.product.prodname_vscode_shortname %} to access your account on {% data variables.product.product_name %}, click **Allow**.
|
||||
3. Sign in to {% data variables.product.product_name %} to approve the extension.
|
||||
|
||||
{% endmac %}
|
||||
|
||||
@@ -56,28 +56,28 @@ Use the {% data variables.product.prodname_vs %} Marketplace to install the [{%
|
||||
|
||||

|
||||
|
||||
1. To authorize {% data variables.product.prodname_vscode %} to access your account on {% data variables.product.product_name %}, click **Allow**.
|
||||
1. To authorize {% data variables.product.prodname_vscode_shortname %} to access your account on {% data variables.product.product_name %}, click **Allow**.
|
||||
1. Sign in to {% data variables.product.product_name %} to approve the extension.
|
||||
|
||||
{% endwindows %}
|
||||
|
||||
## Creating a codespace in {% data variables.product.prodname_vscode %}
|
||||
## Creating a codespace in {% data variables.product.prodname_vscode_shortname %}
|
||||
|
||||
{% data reusables.codespaces.creating-a-codespace-in-vscode %}
|
||||
|
||||
## Opening a codespace in {% data variables.product.prodname_vscode %}
|
||||
## Opening a codespace in {% data variables.product.prodname_vscode_shortname %}
|
||||
|
||||
{% data reusables.codespaces.click-remote-explorer-icon-vscode %}
|
||||
1. Under "Codespaces", click the codespace you want to develop in.
|
||||
1. Click the Connect to Codespace icon.
|
||||
|
||||

|
||||

|
||||
|
||||
## Changing the machine type in {% data variables.product.prodname_vscode %}
|
||||
## Changing the machine type in {% data variables.product.prodname_vscode_shortname %}
|
||||
|
||||
{% data reusables.codespaces.codespaces-machine-types %} You can change the machine type of your codespace at any time.
|
||||
|
||||
1. In {% data variables.product.prodname_vscode %}, open the Command Palette (`shift command P` / `shift control P`).
|
||||
1. In {% data variables.product.prodname_vscode_shortname %}, open the Command Palette (`shift command P` / `shift control P`).
|
||||
1. Search for and select "Codespaces: Change Machine Type."
|
||||
|
||||

|
||||
@@ -100,13 +100,13 @@ Use the {% data variables.product.prodname_vs %} Marketplace to install the [{%
|
||||
|
||||
If you click **No**, or if the codespace is not currently running, the change will take effect the next time the codespace restarts.
|
||||
|
||||
## Deleting a codespace in {% data variables.product.prodname_vscode %}
|
||||
## Deleting a codespace in {% data variables.product.prodname_vscode_shortname %}
|
||||
|
||||
{% data reusables.codespaces.deleting-a-codespace-in-vscode %}
|
||||
|
||||
## Switching to the Insiders build of {% data variables.product.prodname_vscode %}
|
||||
## Switching to the Insiders build of {% data variables.product.prodname_vscode_shortname %}
|
||||
|
||||
You can use the [Insiders Build of Visual Studio Code](https://code.visualstudio.com/docs/setup/setup-overview#_insiders-nightly-build) within {% data variables.product.prodname_codespaces %}.
|
||||
You can use the [Insiders Build of {% data variables.product.prodname_vscode_shortname %}](https://code.visualstudio.com/docs/setup/setup-overview#_insiders-nightly-build) within {% data variables.product.prodname_codespaces %}.
|
||||
|
||||
1. In bottom left of your {% data variables.product.prodname_codespaces %} window, select **{% octicon "gear" aria-label="The settings icon" %} Settings**.
|
||||
2. From the list, select "Switch to Insiders Version".
|
||||
|
||||
@@ -24,6 +24,7 @@ You can work with {% data variables.product.prodname_codespaces %} in the {% da
|
||||
- [Delete a codespace](#delete-a-codespace)
|
||||
- [SSH into a codespace](#ssh-into-a-codespace)
|
||||
- [Open a codespace in {% data variables.product.prodname_vscode %}](#open-a-codespace-in-visual-studio-code)
|
||||
- [Open a codespace in JupyterLab](#open-a-codespace-in-jupyterlab)
|
||||
- [Copying a file to/from a codespace](#copy-a-file-tofrom-a-codespace)
|
||||
- [Modify ports in a codespace](#modify-ports-in-a-codespace)
|
||||
- [Access codespace logs](#access-codespace-logs)
|
||||
@@ -113,6 +114,12 @@ gh codespace code -c <em>codespace-name</em>
|
||||
|
||||
For more information, see "[Using {% data variables.product.prodname_codespaces %} in {% data variables.product.prodname_vscode %}](/codespaces/developing-in-codespaces/using-codespaces-in-visual-studio-code)."
|
||||
|
||||
### Open a codespace in JupyterLab
|
||||
|
||||
```shell
|
||||
gh codespace jupyter -c <em>codespace-name</em>
|
||||
```
|
||||
|
||||
### Copy a file to/from a codespace
|
||||
|
||||
```shell
|
||||
|
||||
@@ -19,7 +19,7 @@ shortTitle: 源控制
|
||||
|
||||
您可以直接在代码空间内执行所需的所有 Git 操作。 例如,您可以从远程仓库获取更改、切换分支、创建新分支、提交和推送更改,以及创建拉取请求。 您可以使用代码空间内的集成终端输入 Git 命令,也可以单击图标和菜单选项以完成所有最常见的 Git 任务。 本指南解释如何使用图形用户界面来控制源代码。
|
||||
|
||||
在 {% data variables.product.prodname_github_codespaces %} 中的源控制使用与 {% data variables.product.prodname_vscode %} 相同的工作流程。 更多信息请参阅 {% data variables.product.prodname_vscode %} 文档“[在 VS 代码中使用版本控制](https://code.visualstudio.com/docs/editor/versioncontrol#_git-support)”。
|
||||
在 {% data variables.product.prodname_github_codespaces %} 中的源控制使用与 {% data variables.product.prodname_vscode %} 相同的工作流程。 For more information, see the {% data variables.product.prodname_vscode_shortname %} documentation "[Using Version Control in {% data variables.product.prodname_vscode_shortname %}](https://code.visualstudio.com/docs/editor/versioncontrol#_git-support)."
|
||||
|
||||
使用 {% data variables.product.prodname_github_codespaces %} 更新文件的典型工作流程将是:
|
||||
|
||||
|
||||
@@ -46,13 +46,13 @@ topics:
|
||||
|
||||
### 步骤 3:连接到代码空间
|
||||
|
||||
创建容器并运行任何其他初始化后,您将连接到代码空间。 如果需要,您可以通过 Web 和/或 [Visual Studio Code](/codespaces/developing-in-codespaces/using-codespaces-in-visual-studio-code) 连接。
|
||||
创建容器并运行任何其他初始化后,您将连接到代码空间。 You can connect to it through the web or via [{% data variables.product.prodname_vscode_shortname %}](/codespaces/developing-in-codespaces/using-codespaces-in-visual-studio-code), or both, if needed.
|
||||
|
||||
### 步骤 4:创建后设置
|
||||
|
||||
连接到代码空间后,您的自动设置可能会根据您在 `devcontainer.json` 文件中指定的配置继续构建。 您可能会看到 `postCreateCommand` 和 `postAttachCommand` 运行。
|
||||
|
||||
如果要在代码空间中使用 Git 挂钩,请使用 [`devcontainer.json` 生命周期脚本](https://code.visualstudio.com/docs/remote/devcontainerjson-reference#_lifecycle-scripts)设置挂钩,例如 `postCreateCommand`。 更多信息请参阅 Visual Studio Code 文档中的 [`devcontainer.json` 参考](https://code.visualstudio.com/docs/remote/devcontainerjson-reference#_devcontainerjson-properties) 。
|
||||
如果要在代码空间中使用 Git 挂钩,请使用 [`devcontainer.json` 生命周期脚本](https://code.visualstudio.com/docs/remote/devcontainerjson-reference#_lifecycle-scripts)设置挂钩,例如 `postCreateCommand`。 For more information, see the [`devcontainer.json` reference](https://code.visualstudio.com/docs/remote/devcontainerjson-reference#_devcontainerjson-properties) in the {% data variables.product.prodname_vscode_shortname %} documentation.
|
||||
|
||||
如果您有一个用于 {% data variables.product.prodname_codespaces %} 的公共 dotfile 存储库,则可以启用它以用于新的代码空间。 启用后,您的 dotfile 将被克隆到容器中,并且将调用安装脚本。 更多信息请参阅“[为帐户个性化 {% data variables.product.prodname_codespaces %}](/github/developing-online-with-codespaces/personalizing-codespaces-for-your-account#dotfiles)”。
|
||||
|
||||
@@ -67,7 +67,7 @@ topics:
|
||||
|
||||
{% note %}
|
||||
|
||||
**注意:**除非已启用 [Auto Save(自动保存)](https://code.visualstudio.com/docs/editor/codebasics#_save-auto-save),否则不会自动保存 {% data variables.product.prodname_vscode %} 代码空间中的更改。
|
||||
**注意:**除非已启用 [Auto Save(自动保存)](https://code.visualstudio.com/docs/editor/codebasics#_save-auto-save),否则不会自动保存 {% data variables.product.prodname_vscode_shortname %} 代码空间中的更改。
|
||||
{% endnote %}
|
||||
|
||||
### 关闭或停止代码空间
|
||||
@@ -93,7 +93,7 @@ topics:
|
||||
|
||||
## 提交和推送更改
|
||||
|
||||
默认情况下,Git 在代码空间中可用,因此您可以依赖现有的 Git 工作流程。 您可以通过终端或使用 [Visual Studio Code](https://code.visualstudio.com/docs/editor/versioncontrol) 的源代码管理 UI 在代码空间中使用 Git。 更多信息请参阅“[在代码空间中使用源控制](/codespaces/developing-in-codespaces/using-source-control-in-your-codespace)”。
|
||||
默认情况下,Git 在代码空间中可用,因此您可以依赖现有的 Git 工作流程。 You can work with Git in your codespace either via the Terminal or by using [{% data variables.product.prodname_vscode_shortname %}](https://code.visualstudio.com/docs/editor/versioncontrol)'s source control UI. 更多信息请参阅“[在代码空间中使用源控制](/codespaces/developing-in-codespaces/using-source-control-in-your-codespace)”。
|
||||
|
||||

|
||||
|
||||
@@ -107,9 +107,9 @@ topics:
|
||||
|
||||
## 使用扩展个性化您的代码空间
|
||||
|
||||
在代码空间中使用 {% data variables.product.prodname_vscode %} 可以访问 {% data variables.product.prodname_vscode %} 市场,以便您可以添加所需的任何扩展。 有关扩展如何在 {% data variables.product.prodname_codespaces %} 中运行的信息,请参阅 {% data variables.product.prodname_vscode %} 文档中的[支持远程开发和 GitHub 代码空间](https://code.visualstudio.com/api/advanced-topics/remote-extensions) 。
|
||||
Using {% data variables.product.prodname_vscode_shortname %} in your codespace gives you access to the {% data variables.product.prodname_vscode_marketplace %} so that you can add any extensions you need. 有关扩展如何在 {% data variables.product.prodname_codespaces %} 中运行的信息,请参阅 {% data variables.product.prodname_vscode_shortname %} 文档中的[支持远程开发和 GitHub 代码空间](https://code.visualstudio.com/api/advanced-topics/remote-extensions) 。
|
||||
|
||||
如果您已使用 {% data variables.product.prodname_vscode %},则可以使用[设置同步](https://code.visualstudio.com/docs/editor/settings-sync)在本地实例和您创建的任何 {% data variables.product.prodname_codespaces %} 之间自动同步扩展程序、设置、主题和键盘快捷键。
|
||||
如果您已使用 {% data variables.product.prodname_vscode_shortname %},则可以使用[设置同步](https://code.visualstudio.com/docs/editor/settings-sync)在本地实例和您创建的任何 {% data variables.product.prodname_codespaces %} 之间自动同步扩展程序、设置、主题和键盘快捷键。
|
||||
|
||||
## 延伸阅读
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ redirect_from:
|
||||
|
||||
## 使用扩展进行个性化设置
|
||||
|
||||
在代码空间内,您可以访问 Visual Studio Code Marketplace。 在本示例中,您将安装可更改主题的扩展,但您可以安装对工作流程有用的任何扩展。
|
||||
Within a codespace, you have access to the {% data variables.product.prodname_vscode_marketplace %}. 在本示例中,您将安装可更改主题的扩展,但您可以安装对工作流程有用的任何扩展。
|
||||
|
||||
1. 在左侧栏中,单击扩展图标。
|
||||
|
||||
@@ -84,7 +84,7 @@ redirect_from:
|
||||
|
||||

|
||||
|
||||
4. 在当前代码空间中对编辑器设置所做的更改,如主题和键盘绑定,将通过 [Settings Sync(设置同步)](https://code.visualstudio.com/docs/editor/settings-sync)自动同步到您打开的任何其他代码空间以及登录到您 GitHub 帐户的任何 Visual Studio Code 实例。
|
||||
4. Changes you make to your editor setup in the current codespace, such as theme and keyboard bindings, are synced automatically via [Settings Sync](https://code.visualstudio.com/docs/editor/settings-sync) to any other codespaces you open and any instances of {% data variables.product.prodname_vscode %} that are signed into your GitHub account.
|
||||
|
||||
## 后续步骤
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ topics:
|
||||
|
||||
## 删除未使用的代码空间
|
||||
|
||||
您的用户可以在 https://github.com/codespaces 和 Visual Studio Code 中删除其代码空间。 要减小代码空间的大小,用户可以使用终端或从 Visual Studio Code 中手动删除文件。
|
||||
Your users can delete their codespaces in https://github.com/codespaces and from within {% data variables.product.prodname_vscode %}. To reduce the size of a codespace, users can manually delete files using the terminal or from within {% data variables.product.prodname_vscode_shortname %}.
|
||||
|
||||
{% note %}
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ redirect_from:
|
||||
若要创建定义了自定义权限的代码空间,必须使用下列方法之一:
|
||||
* {% data variables.product.prodname_dotcom %} web UI
|
||||
* [{% data variables.product.prodname_dotcom %} CLI](https://github.com/cli/cli/releases/latest) 2.5.2 或更高版本
|
||||
* [{% data variables.product.prodname_github_codespaces %} Visual Studio Code 扩展](https://marketplace.visualstudio.com/items?itemName=GitHub.codespaces) 1.5.3 或更高版本
|
||||
* [{% data variables.product.prodname_github_codespaces %} {% data variables.product.prodname_vscode %} extension](https://marketplace.visualstudio.com/items?itemName=GitHub.codespaces) 1.5.3 or later
|
||||
|
||||
## 设置其他存储库权限
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ topics:
|
||||
|
||||
如果不添加开发容器配置, {% data variables.product.prodname_codespaces %} 会将存储库克隆到具有默认代码空间映像的环境中,该映像包含许多工具、语言和运行时环境。 更多信息请参阅“[开发容器简介](/codespaces/setting-up-your-codespace/configuring-codespaces-for-your-project)”。
|
||||
|
||||
您还可以通过使用公共 [dotfiles](https://dotfiles.github.io/tutorials/) 存储库和[设置同步](https://code.visualstudio.com/docs/editor/settings-sync)来个性化代码空间环境的各个方面。 个性化设置可以包括 shell 首选项、其他工具、编辑器设置和 VS Code 扩展。 更多信息请参阅“[自定义代码空间](/codespaces/customizing-your-codespace)”。
|
||||
您还可以通过使用公共 [dotfiles](https://dotfiles.github.io/tutorials/) 存储库和[设置同步](https://code.visualstudio.com/docs/editor/settings-sync)来个性化代码空间环境的各个方面。 Personalization can include shell preferences, additional tools, editor settings, and {% data variables.product.prodname_vscode_shortname %} extensions. 更多信息请参阅“[自定义代码空间](/codespaces/customizing-your-codespace)”。
|
||||
|
||||
## 关于 {% data variables.product.prodname_codespaces %} 的计费
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ permissions: People with admin access to a repository can configure prebuilds fo
|
||||
|
||||
## 配置要包含在预构建中的耗时任务
|
||||
|
||||
您可以在 `devcontainer.json` 中使用 `onCreateCommand` 和 `updateContentCommand` 命令,以将耗时的过程作为预构建模板创建的一部分包括在内。 更多信息请参阅 Visual Studio Code 文档“[devcontainer.json reference](https://code.visualstudio.com/docs/remote/devcontainerjson-reference#_lifecycle-scripts)”。
|
||||
您可以在 `devcontainer.json` 中使用 `onCreateCommand` 和 `updateContentCommand` 命令,以将耗时的过程作为预构建模板创建的一部分包括在内。 For more information, see the {% data variables.product.prodname_vscode %} documentation, "[devcontainer.json reference](https://code.visualstudio.com/docs/remote/devcontainerjson-reference#_lifecycle-scripts)."
|
||||
|
||||
`onCreateCommand` 仅在创建预构建模板时运行一次,而 `updateContentCommand` 在模板创建和后续模板更新时运行。 增量构建应包含在 `updateContentCommand` 中,因为它们表示项目的源代码,并且需要包含在每个预构建模板更新中。
|
||||
|
||||
|
||||
@@ -110,7 +110,7 @@ RUN apt-get update && bash /tmp/library-scripts/github-debian.sh
|
||||
}
|
||||
```
|
||||
|
||||
有关在开发容器配置中使用 Dockerfile 的详细信息,请参阅 {% data variables.product.prodname_vscode %} 文档“[创建开发容器](https://code.visualstudio.com/docs/remote/create-dev-container#_dockerfile)”。
|
||||
For more information about using a Dockerfile in a dev container configuration, see the {% data variables.product.prodname_vscode_shortname %} documentation "[Create a development container](https://code.visualstudio.com/docs/remote/create-dev-container#_dockerfile)."
|
||||
|
||||
## 使用默认开发容器配置
|
||||
|
||||
@@ -122,7 +122,7 @@ RUN apt-get update && bash /tmp/library-scripts/github-debian.sh
|
||||
|
||||
## 使用预定义的开发容器配置
|
||||
|
||||
可以从预定义配置列表中进行选择,以便为存储库创建开发容器配置。 这些配置为特定项目类型提供了常见设置,并可以帮助您快速开始使用已具有相应容器选项、{% data variables.product.prodname_vscode %} 设置和应安装的 {% data variables.product.prodname_vscode %} 扩展的配置。
|
||||
可以从预定义配置列表中进行选择,以便为存储库创建开发容器配置。 These configurations provide common setups for particular project types, and can help you quickly get started with a configuration that already has the appropriate container options, {% data variables.product.prodname_vscode_shortname %} settings, and {% data variables.product.prodname_vscode_shortname %} extensions that should be installed.
|
||||
|
||||
如果您需要一些额外的扩展性,使用预先定义的配置是一个好主意。 您也可以从预定义的配置开始,然后根据项目的需要对其进行修改。
|
||||
|
||||
@@ -192,9 +192,9 @@ RUN apt-get update && bash /tmp/library-scripts/github-debian.sh
|
||||
|
||||
### 编辑 devcontainer.json 文件
|
||||
|
||||
您可以在 `devcontainer.json` 文件中添加和编辑支持的配置键,以指定代码空间环境的各个方面,例如将安装哪些 {% data variables.product.prodname_vscode %} 扩展。 {% data reusables.codespaces.more-info-devcontainer %}
|
||||
You can add and edit the supported configuration keys in the `devcontainer.json` file to specify aspects of the codespace's environment, like which {% data variables.product.prodname_vscode_shortname %} extensions will be installed. {% data reusables.codespaces.more-info-devcontainer %}
|
||||
|
||||
`devcontainer.json` 文件是使用 JSONC 格式编写的。 这允许您在配置文件中包含注释。 更多信息请参阅 {% data variables.product.prodname_vscode %} 文档中的“[使用 Visual Studio Code 编辑 JSON](https://code.visualstudio.com/docs/languages/json#_json-with-comments)”。
|
||||
`devcontainer.json` 文件是使用 JSONC 格式编写的。 这允许您在配置文件中包含注释。 For more information, see "[Editing JSON with {% data variables.product.prodname_vscode_shortname %}](https://code.visualstudio.com/docs/languages/json#_json-with-comments)" in the {% data variables.product.prodname_vscode_shortname %} documentation.
|
||||
|
||||
{% note %}
|
||||
|
||||
@@ -202,11 +202,11 @@ RUN apt-get update && bash /tmp/library-scripts/github-debian.sh
|
||||
|
||||
{% endnote %}
|
||||
|
||||
### Visual Studio Code 的编辑器设置
|
||||
### Editor settings for {% data variables.product.prodname_vscode_shortname %}
|
||||
|
||||
{% data reusables.codespaces.vscode-settings-order %}
|
||||
|
||||
您可以在两个地方定义 {% data variables.product.prodname_vscode %} 的默认编辑器设置。
|
||||
You can define default editor settings for {% data variables.product.prodname_vscode_shortname %} in two places.
|
||||
|
||||
* 在存储库的 `.vscode/settings.json` 文件中定义的编辑器设置将作为代码空间中_工作区_范围的设置进行应用。
|
||||
* `devcontainer.json` 文件的 `settings` 键中定义的编辑器设置在代码空间中用作 _Remote [Codespaces]_ 范围的设置。
|
||||
|
||||
@@ -27,7 +27,7 @@ The {% data variables.product.prodname_serverless %} introduces a lightweight ed
|
||||
|
||||
The {% data variables.product.prodname_serverless %} is available to everyone for free on {% data variables.product.prodname_dotcom_the_website %}.
|
||||
|
||||
The {% data variables.product.prodname_serverless %} provides many of the benefits of {% data variables.product.prodname_vscode %}, such as search, syntax highlighting, and a source control view. You can also use Settings Sync to share your own {% data variables.product.prodname_vscode %} settings with the editor. For more information, see "[Settings Sync](https://code.visualstudio.com/docs/editor/settings-sync)" in the {% data variables.product.prodname_vscode %} documentation.
|
||||
The {% data variables.product.prodname_serverless %} provides many of the benefits of {% data variables.product.prodname_vscode %}, such as search, syntax highlighting, and a source control view. You can also use Settings Sync to share your own {% data variables.product.prodname_vscode_shortname %} settings with the editor. For more information, see "[Settings Sync](https://code.visualstudio.com/docs/editor/settings-sync)" in the {% data variables.product.prodname_vscode_shortname %} documentation.
|
||||
|
||||
The {% data variables.product.prodname_serverless %} runs entirely in your browser’s sandbox. The editor doesn’t clone the repository, but instead uses the [GitHub Repositories extension](https://code.visualstudio.com/docs/editor/github#_github-repositories-extension) to carry out most of the functionality that you will use. Your work is saved in the browser’s local storage until you commit it. You should commit your changes regularly to ensure that they're always accessible.
|
||||
|
||||
@@ -49,7 +49,7 @@ Both the {% data variables.product.prodname_serverless %} and {% data variables.
|
||||
| **Start up** | The {% data variables.product.prodname_serverless %} opens instantly with a key-press and you can start using it right away, without having to wait for additional configuration or installation. | When you create or resume a codespace, the codespace is assigned a VM and the container is configured based on the contents of a `devcontainer.json` file. This set up may take a few minutes to create the environment. For more information, see "[Creating a Codespace](/codespaces/developing-in-codespaces/creating-a-codespace)." |
|
||||
| **Compute** | There is no associated compute, so you won’t be able to build and run your code or use the integrated terminal. | With {% data variables.product.prodname_codespaces %}, you get the power of dedicated VM on which you can run and debug your application.|
|
||||
| **Terminal access** | None. | {% data variables.product.prodname_codespaces %} provides a common set of tools by default, meaning that you can use the Terminal exactly as you would in your local environment.|
|
||||
| **Extensions** | Only a subset of extensions that can run in the web will appear in the Extensions View and can be installed. For more information, see "[Using extensions](#using-extensions)."| With Codespaces, you can use most extensions from the Visual Studio Code Marketplace.|
|
||||
| **Extensions** | Only a subset of extensions that can run in the web will appear in the Extensions View and can be installed. For more information, see "[Using extensions](#using-extensions)."| With Codespaces, you can use most extensions from the {% data variables.product.prodname_vscode_marketplace %}.|
|
||||
|
||||
### Continue working on {% data variables.product.prodname_codespaces %}
|
||||
|
||||
@@ -61,9 +61,9 @@ To continue your work in a codespace, click **Continue Working on…** and selec
|
||||
|
||||
## Using source control
|
||||
|
||||
When you use the {% data variables.product.prodname_serverless %}, all actions are managed through the Source Control View, which is located in the Activity Bar on the left hand side. For more information on the Source Control View, see "[Version Control](https://code.visualstudio.com/docs/editor/versioncontrol)" in the {% data variables.product.prodname_vscode %} documentation.
|
||||
When you use the {% data variables.product.prodname_serverless %}, all actions are managed through the Source Control View, which is located in the Activity Bar on the left hand side. For more information on the Source Control View, see "[Version Control](https://code.visualstudio.com/docs/editor/versioncontrol)" in the {% data variables.product.prodname_vscode_shortname %} documentation.
|
||||
|
||||
Because the web-based editor uses the GitHub Repositories extension to power its functionality, you can switch branches without needing to stash changes. For more information, see "[GitHub Repositories](https://code.visualstudio.com/docs/editor/github#_github-repositories-extension)" in the {% data variables.product.prodname_vscode %} documentation.
|
||||
Because the web-based editor uses the GitHub Repositories extension to power its functionality, you can switch branches without needing to stash changes. For more information, see "[GitHub Repositories](https://code.visualstudio.com/docs/editor/github#_github-repositories-extension)" in the {% data variables.product.prodname_vscode_shortname %} documentation.
|
||||
|
||||
### Create a new branch
|
||||
|
||||
@@ -88,9 +88,9 @@ You can use the {% data variables.product.prodname_serverless %} to work with an
|
||||
|
||||
## Using extensions
|
||||
|
||||
The {% data variables.product.prodname_serverless %} supports {% data variables.product.prodname_vscode %} extensions that have been specifically created or updated to run in the web. These extensions are known as "web extensions". To learn how you can create a web extension or update your existing extension to work for the web, see "[Web extensions](https://code.visualstudio.com/api/extension-guides/web-extensions)" in the {% data variables.product.prodname_vscode %} documentation.
|
||||
The {% data variables.product.prodname_serverless %} supports {% data variables.product.prodname_vscode_shortname %} extensions that have been specifically created or updated to run in the web. These extensions are known as "web extensions". To learn how you can create a web extension or update your existing extension to work for the web, see "[Web extensions](https://code.visualstudio.com/api/extension-guides/web-extensions)" in the {% data variables.product.prodname_vscode_shortname %} documentation.
|
||||
|
||||
Extensions that can run in the {% data variables.product.prodname_serverless %} will appear in the Extensions View and can be installed. If you use Settings Sync, any compatible extensions are also installed automatically. For information, see "[Settings Sync](https://code.visualstudio.com/docs/editor/settings-sync)" in the {% data variables.product.prodname_vscode %} documentation.
|
||||
Extensions that can run in the {% data variables.product.prodname_serverless %} will appear in the Extensions View and can be installed. If you use Settings Sync, any compatible extensions are also installed automatically. For information, see "[Settings Sync](https://code.visualstudio.com/docs/editor/settings-sync)" in the {% data variables.product.prodname_vscode_shortname %} documentation.
|
||||
|
||||
|
||||
## Troubleshooting
|
||||
@@ -104,5 +104,5 @@ If you have issues opening the {% data variables.product.prodname_serverless %},
|
||||
### Known limitations
|
||||
|
||||
- The {% data variables.product.prodname_serverless %} is currently supported in Chrome (and various other Chromium-based browsers), Edge, Firefox, and Safari. We recommend that you use the latest versions of these browsers.
|
||||
- Some keybindings may not work, depending on the browser you are using. These keybinding limitations are documented in the "[Known limitations and adaptations](https://code.visualstudio.com/docs/remote/codespaces#_known-limitations-and-adaptations)" section of the {% data variables.product.prodname_vscode %} documentation.
|
||||
- Some keybindings may not work, depending on the browser you are using. These keybinding limitations are documented in the "[Known limitations and adaptations](https://code.visualstudio.com/docs/remote/codespaces#_known-limitations-and-adaptations)" section of the {% data variables.product.prodname_vscode_shortname %} documentation.
|
||||
- `.` may not work to open the {% data variables.product.prodname_serverless %} according to your local keyboard layout. In that case, you can open any {% data variables.product.prodname_dotcom %} repository in the {% data variables.product.prodname_serverless %} by changing the URL from `github.com` to `github.dev`.
|
||||
|
||||
@@ -22,11 +22,11 @@ miniTocMaxHeadingLevel: 3
|
||||
|
||||

|
||||
|
||||
如果将 {% data variables.product.prodname_codespaces %} 编辑器首选项设置为“Visual Studio Code for Web”,则“设置代码空间”页面将显示消息“找到预构建的代码空间”(如果正在使用预构建)。
|
||||
If you have your {% data variables.product.prodname_codespaces %} editor preference set to "{% data variables.product.prodname_vscode %} for Web" then the "Setting up your codespace" page will show the message "Prebuilt codespace found" if a prebuild is being used.
|
||||
|
||||

|
||||
|
||||
同样,如果您的编辑器首选项是“Visual Studio Code”,则当您创建新代码空间时,集成终端将包含消息“您正在使用由存储库的预构建配置定义的预构建代码空间”。 更多信息请参阅“[设置代码空间的默认编辑器](/codespaces/customizing-your-codespace/setting-your-default-editor-for-codespaces)”。
|
||||
Similarly, if your editor preference is "{% data variables.product.prodname_vscode_shortname %}" then the integrated terminal will contain the message "You are on a prebuilt codespace defined by the prebuild configuration for your repository" when you create a new codespace. 更多信息请参阅“[设置代码空间的默认编辑器](/codespaces/customizing-your-codespace/setting-your-default-editor-for-codespaces)”。
|
||||
|
||||
创建代码空间后,可以通过在终端中运行以下 {% data variables.product.prodname_cli %} 命令来检查它是否是从预构建创建的:
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ children:
|
||||
- /managing-disruptive-comments
|
||||
- /locking-conversations
|
||||
- /limiting-interactions-in-your-repository
|
||||
- /limiting-interactions-for-your-user-account
|
||||
- /limiting-interactions-for-your-personal-account
|
||||
- /limiting-interactions-in-your-organization
|
||||
- /tracking-changes-in-a-comment
|
||||
- /managing-how-contributors-report-abuse-in-your-organizations-repository
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
title: 限制用户帐户的交互
|
||||
title: 限制个人帐户的交互
|
||||
intro: 您可以在个人帐户拥有的所有公共仓库中对某些用户临时限制活动一段时间。
|
||||
versions:
|
||||
fpt: '*'
|
||||
@@ -7,6 +7,7 @@ versions:
|
||||
permissions: Anyone can limit interactions for their own personal account.
|
||||
redirect_from:
|
||||
- /github/building-a-strong-community/limiting-interactions-for-your-user-account
|
||||
- /communities/moderating-comments-and-conversations/limiting-interactions-for-your-user-account
|
||||
topics:
|
||||
- Community
|
||||
shortTitle: 限制帐户中的交互
|
||||
@@ -22,7 +22,7 @@ shortTitle: 限制仓库中的交互
|
||||
|
||||
{% data reusables.community.types-of-interaction-limits %}
|
||||
|
||||
您也可以为个人帐户或组织拥有的所有仓库启用或活动限制。 如果启用了用户范围或组织范围的限制,则不能限制帐户拥有的单个仓库的活动。 更多信息请参阅“[限制个人帐户的交互](/communities/moderating-comments-and-conversations/limiting-interactions-for-your-user-account)”和“[限制组织中的交互](/communities/moderating-comments-and-conversations/limiting-interactions-in-your-organization)”。
|
||||
您也可以为个人帐户或组织拥有的所有仓库启用或活动限制。 如果启用了用户范围或组织范围的限制,则不能限制帐户拥有的单个仓库的活动。 更多信息请参阅“[限制个人帐户的交互](/communities/moderating-comments-and-conversations/limiting-interactions-for-your-personal-account)”和“[限制组织中的交互](/communities/moderating-comments-and-conversations/limiting-interactions-in-your-organization)”。
|
||||
|
||||
## 限制仓库中的交互
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ shortTitle: 配置默认编辑器
|
||||
|
||||
- [Atom](https://atom.io/)
|
||||
- [MacVim](https://macvim-dev.github.io/macvim/)
|
||||
- [Visual Studio Code](https://code.visualstudio.com/)
|
||||
- [{% data variables.product.prodname_vscode %}](https://code.visualstudio.com/)
|
||||
- [Visual Studio Codium](https://vscodium.com/)
|
||||
- [Sublime Text](https://www.sublimetext.com/)
|
||||
- [BBEdit](http://www.barebones.com/products/bbedit/)
|
||||
@@ -44,7 +44,7 @@ shortTitle: 配置默认编辑器
|
||||
{% windows %}
|
||||
|
||||
- [Atom](https://atom.io/)
|
||||
- [Visual Studio Code](https://code.visualstudio.com/)
|
||||
- [{% data variables.product.prodname_vscode %}](https://code.visualstudio.com/)
|
||||
- [Visual Studio Codium](https://vscodium.com/)
|
||||
- [Sublime Text](https://www.sublimetext.com/)
|
||||
- [ColdFusion Builder](https://www.adobe.com/products/coldfusion-builder.html)
|
||||
|
||||
@@ -239,8 +239,8 @@ curl -H "Authorization: token OAUTH-TOKEN" {% data variables.product.api_url_pre
|
||||
|
||||
* [列出部署](/rest/reference/deployments#list-deployments)
|
||||
* [创建部署](/rest/reference/deployments#create-a-deployment)
|
||||
* [Get a deployment](/rest/reference/deployments#get-a-deployment)
|
||||
* [Delete a deployment](/rest/reference/deployments#delete-a-deployment)
|
||||
* [获取部署](/rest/reference/deployments#get-a-deployment)
|
||||
* [删除部署](/rest/reference/deployments#delete-a-deployment)
|
||||
|
||||
#### 事件
|
||||
|
||||
@@ -573,7 +573,7 @@ curl -H "Authorization: token OAUTH-TOKEN" {% data variables.product.api_url_pre
|
||||
|
||||
#### 反应
|
||||
|
||||
* [Delete a reaction](/rest/reference/reactions)
|
||||
* [删除反应](/rest/reference/reactions)
|
||||
* [列出提交注释的反应](/rest/reference/reactions#list-reactions-for-a-commit-comment)
|
||||
* [创建提交注释的反应](/rest/reference/reactions#create-reaction-for-a-commit-comment)
|
||||
* [列出议题的反应](/rest/reference/reactions#list-reactions-for-an-issue)
|
||||
@@ -585,13 +585,13 @@ curl -H "Authorization: token OAUTH-TOKEN" {% data variables.product.api_url_pre
|
||||
* [列出团队讨论注释的反应](/rest/reference/reactions#list-reactions-for-a-team-discussion-comment)
|
||||
* [创建团队讨论注释的反应](/rest/reference/reactions#create-reaction-for-a-team-discussion-comment)
|
||||
* [列出团队讨论的反应](/rest/reference/reactions#list-reactions-for-a-team-discussion)
|
||||
* [Create reaction for a team discussion](/rest/reference/reactions#create-reaction-for-a-team-discussion)
|
||||
* [为团队讨论创建反应](/rest/reference/reactions#create-reaction-for-a-team-discussion)
|
||||
* [删除提交注释反应](/rest/reference/reactions#delete-a-commit-comment-reaction)
|
||||
* [删除议题反应](/rest/reference/reactions#delete-an-issue-reaction)
|
||||
* [删除对提交注释的反应](/rest/reference/reactions#delete-an-issue-comment-reaction)
|
||||
* [删除拉取请求注释反应](/rest/reference/reactions#delete-a-pull-request-comment-reaction)
|
||||
* [删除团队讨论反应](/rest/reference/reactions#delete-team-discussion-reaction)
|
||||
* [Delete team discussion comment reaction](/rest/reference/reactions#delete-team-discussion-comment-reaction)
|
||||
* [删除团队讨论评论反应](/rest/reference/reactions#delete-team-discussion-comment-reaction)
|
||||
|
||||
#### 仓库
|
||||
|
||||
|
||||
@@ -1,39 +1,39 @@
|
||||
---
|
||||
title: 关于将 Visual Studio Code 与 GitHub Classroom 配合使用
|
||||
shortTitle: 关于使用 Visual Studio Code
|
||||
intro: '您可以将 Visual Studio Code 配置为 {% data variables.product.prodname_classroom %} 中任务的首选编辑器。'
|
||||
intro: 'You can configure {% data variables.product.prodname_vscode %} as the preferred editor for assignments in {% data variables.product.prodname_classroom %}.'
|
||||
versions:
|
||||
fpt: '*'
|
||||
redirect_from:
|
||||
- /education/manage-coursework-with-github-classroom/about-using-vs-code-with-github-classroom
|
||||
---
|
||||
|
||||
## 关于 Visual Studio Code
|
||||
## 关于 {% data variables.product.prodname_vscode %}
|
||||
|
||||
Visual Studio Code 是一个轻量级但功能强大的源代码编辑器,可在桌面上运行,适用于 Windows、macOS 和 Linux。 借助 [Visual Studio Code 的 GitHub Classroom 扩展](https://aka.ms/classroom-vscode-ext),学生可以轻松浏览、编辑、提交、协作和测试他们的课堂作业。 有关 IDE 和 {% data variables.product.prodname_classroom %} 的更多信息,请参阅“[集成 {% data variables.product.prodname_classroom %} 与 IDE](/education/manage-coursework-with-github-classroom/integrate-github-classroom-with-an-ide/integrate-github-classroom-with-an-ide)”。
|
||||
{% data variables.product.prodname_vscode %} is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, macOS and Linux. With the [GitHub Classroom extension for {% data variables.product.prodname_vscode_shortname %}](https://aka.ms/classroom-vscode-ext), students can easily browse, edit, submit, collaborate, and test their Classroom Assignments. 有关 IDE 和 {% data variables.product.prodname_classroom %} 的更多信息,请参阅“[集成 {% data variables.product.prodname_classroom %} 与 IDE](/education/manage-coursework-with-github-classroom/integrate-github-classroom-with-an-ide/integrate-github-classroom-with-an-ide)”。
|
||||
|
||||
### 您学生的首选编辑器
|
||||
GitHub Classroom 与 Visual Studio Code 的集成为学生提供了一个扩展包,其中包含:
|
||||
The GitHub Classroom integration with {% data variables.product.prodname_vscode_shortname %} provides students with an extension pack which contains:
|
||||
|
||||
1. [GitHub 课程扩展](https://aka.ms/classroom-vscode-ext),其中包含自定义摘要,便于学生轻松入门。
|
||||
2. [Visual Studio 实时分享扩展](https://marketplace.visualstudio.com/items?itemName=MS-vsliveshare.vsliveshare-pack),集成到学生视图中,以便轻松获取助教和同学的帮助与协作。
|
||||
3. [GitHub 拉取请求扩展](https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github),允许学生在编辑器中查看教师的反馈。
|
||||
|
||||
### 如何在 Visual Studio Code 中启动作业
|
||||
创建作业时,可以将 Visual Studio Code 添加为作业的首选编辑器。 有关详细信息,请参阅“[集成 {% data variables.product.prodname_classroom %} 与 IDE](/education/manage-coursework-with-github-classroom/integrate-github-classroom-with-an-ide/integrate-github-classroom-with-an-ide)”。
|
||||
### How to launch the assignment in {% data variables.product.prodname_vscode_shortname %}
|
||||
When creating an assignment, {% data variables.product.prodname_vscode_shortname %} can be added as the preferred editor for an assignment. 有关详细信息,请参阅“[集成 {% data variables.product.prodname_classroom %} 与 IDE](/education/manage-coursework-with-github-classroom/integrate-github-classroom-with-an-ide/integrate-github-classroom-with-an-ide)”。
|
||||
|
||||
这将包括所有学生仓库中的“在 Visual Studio 代码中打开”徽章。 此徽章处理安装 Visual Studio Code(课堂扩展包)以及一键打开活动的作业。
|
||||
This will include an "Open in {% data variables.product.prodname_vscode_shortname %}" badge in all student repositories. This badge handles installing {% data variables.product.prodname_vscode_shortname %}, the Classroom extension pack, and opening to the active assignment with one click.
|
||||
|
||||
{% note %}
|
||||
|
||||
**注意:**学生必须在其计算机上安装 Git 才能将代码从 Visual Studio Code 推送到其存储库。 单击**在 Visual Studio 代码中打开**按钮时不自动安装。 学生可以从[这里](https://git-scm.com/downloads)下载 Git。
|
||||
**Note:** The student must have Git installed on their computer to push code from {% data variables.product.prodname_vscode_shortname %} to their repository. This is not automatically installed when clicking the **Open in {% data variables.product.prodname_vscode_shortname %}** button. 学生可以从[这里](https://git-scm.com/downloads)下载 Git。
|
||||
|
||||
{% endnote %}
|
||||
|
||||
### 如何使用 GitHub 课堂扩展包
|
||||
GitHub 课堂扩展有两个主要组件:“课堂”视图和“活动的作业”视图。
|
||||
|
||||
当学生首次启动扩展时,他们将自动导航到 Visual Studio Code 中的 Explorer 选项卡,在其中可以看到“活动的作业”视图以及存储库中文件的树视图。
|
||||
When the student launches the extension for the first time, they are automatically navigated to the Explorer tab in {% data variables.product.prodname_vscode_shortname %}, where they can see the "Active Assignment" view alongside the tree-view of files in the repository.
|
||||
|
||||

|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ redirect_from:
|
||||
|:--------------------------------------------------------- |:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| {% data variables.product.prodname_github_codespaces %} | “[将 {% data variables.product.prodname_github_codespaces %} 与 {% data variables.product.prodname_classroom %} 一起使用](/education/manage-coursework-with-github-classroom/integrate-github-classroom-with-an-ide/using-github-codespaces-with-github-classroom)” |
|
||||
| Microsoft MakeCode Arcade | "[关于结合使用 MakeCode Arcade 与 {% data variables.product.prodname_classroom %}](/education/manage-coursework-with-github-classroom/about-using-makecode-arcade-with-github-classroom)" |
|
||||
| Visual Studio Code | Visual Studio Marketplace 中的 [{% data variables.product.prodname_classroom %} 扩展](http://aka.ms/classroom-vscode-ext) |
|
||||
| {% data variables.product.prodname_vscode %} | Visual Studio Marketplace 中的 [{% data variables.product.prodname_classroom %} 扩展](http://aka.ms/classroom-vscode-ext) |
|
||||
|
||||
我们知道云 IDE 集成对您的课堂非常重要,正在努力提供更多选择。
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ shortTitle: 扩展和集成
|
||||
|
||||
## 编辑器工具
|
||||
|
||||
您可以在第三方编辑器工具中连接到 {% data variables.product.product_name %} 仓库,例如 Atom、Unity 和 Visual Studio 等工具。
|
||||
You can connect to {% data variables.product.product_name %} repositories within third-party editor tools, such as Atom, Unity, and {% data variables.product.prodname_vs %}.
|
||||
|
||||
### {% data variables.product.product_name %} for Atom
|
||||
|
||||
@@ -24,13 +24,13 @@ shortTitle: 扩展和集成
|
||||
|
||||
使用 {% data variables.product.product_name %} for Unity 编辑器扩展,您可以在开源游戏开发平台 Unity 上进行开发,在 {% data variables.product.product_name %} 查看您的工作。 更多信息请参阅官方 Unity 编辑器扩展[站点](https://unity.github.com/)或[文档](https://github.com/github-for-unity/Unity/tree/master/docs)。
|
||||
|
||||
### {% data variables.product.product_name %} for Visual Studio
|
||||
### {% data variables.product.product_name %} for {% data variables.product.prodname_vs %}
|
||||
|
||||
使用 {% data variables.product.product_name %} for Visual Studio 扩展,您可以 Visual Studio 中处理 {% data variables.product.product_name %} 仓库。 更多信息请参阅官方 Visual Studio 扩展[站点](https://visualstudio.github.com/)或[文档](https://github.com/github/VisualStudio/tree/master/docs)。
|
||||
With the {% data variables.product.product_name %} for {% data variables.product.prodname_vs %} extension, you can work in {% data variables.product.product_name %} repositories without leaving {% data variables.product.prodname_vs %}. For more information, see the official {% data variables.product.prodname_vs %} extension [site](https://visualstudio.github.com/) or [documentation](https://github.com/github/VisualStudio/tree/master/docs).
|
||||
|
||||
### {% data variables.product.prodname_dotcom %} for Visual Studio Code
|
||||
### {% data variables.product.prodname_dotcom %} for {% data variables.product.prodname_vscode %}
|
||||
|
||||
使用 {% data variables.product.prodname_dotcom %} for Visual Studio Code 扩展,您可以在 Visual Studio Code 中审查和管理 {% data variables.product.product_name %} 拉取请求。 更多信息请参阅官方 Visual Studio Code 扩展[站点](https://vscode.github.com/)或[文档](https://github.com/Microsoft/vscode-pull-request-github)。
|
||||
With the {% data variables.product.prodname_dotcom %} for {% data variables.product.prodname_vscode %} extension, you can review and manage {% data variables.product.product_name %} pull requests in {% data variables.product.prodname_vscode_shortname %}. For more information, see the official {% data variables.product.prodname_vscode_shortname %} extension [site](https://vscode.github.com/) or [documentation](https://github.com/Microsoft/vscode-pull-request-github).
|
||||
|
||||
## 项目管理工具
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ topics:
|
||||
|
||||
## About followers on {% data variables.product.product_name %}
|
||||
|
||||
When you follow organizations, you'll see their public activity on your personal dashboard. For more information, see "[About your personal dashboard](/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/about-your-personal-dashboard#staying-updated-with-activity-from-the-community)."
|
||||
When you follow organizations, you'll see their public activity on your personal dashboard. For more information, see "[About your personal dashboard](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-personal-account-settings/about-your-personal-dashboard#staying-updated-with-activity-from-the-community)."
|
||||
|
||||
You can unfollow an organization if you do not wish to see their {% ifversion fpt or ghec %}public{% endif %} activity on {% data variables.product.product_name %}.
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ topics:
|
||||
|
||||
## 关于 {% data variables.product.product_name %} 上的关注者
|
||||
|
||||
关注用户后,您会在个人信息中心看到他们的公开活动。{% ifversion fpt or ghec %} 如果您关注的人将某个公共存储库标星, {% data variables.product.product_name %} 可能会向您推荐该存储库。{% endif %} 更多信息请参阅“[关于个人仪表板](/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/about-your-personal-dashboard#staying-updated-with-activity-from-the-community)”。
|
||||
When you follow people, you'll see their public activity on your personal dashboard.{% ifversion fpt or ghec %} If someone you follow stars a public repository, {% data variables.product.product_name %} may recommend the repository to you.{% endif %} For more information, see "[About your personal dashboard](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-personal-account-settings/about-your-personal-dashboard#staying-updated-with-activity-from-the-community)."
|
||||
|
||||
如果您不希望在 {% data variables.product.product_name %} 上看到某人的公开活动,则可以取消关注他们。
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ shortTitle: 保存有星标的仓库
|
||||
标星操作便于以后再次找到仓库或主题。 您可以到 {% data variables.explore.your_stars_page %} 查看已经加星标的所有仓库和主题。
|
||||
|
||||
{% ifversion fpt or ghec %}
|
||||
您可以对仓库和主题加星标以在 {% data variables.product.product_name %} 上发现类似的项目。 当您为存储库或主题添加星标时, {% data variables.product.product_name %} 可能会在您的个人仪表板上推荐相关内容。 更多信息请参阅“[查找参与 {% data variables.product.prodname_dotcom %} 上的开源项目的方法](/github/getting-started-with-github/finding-ways-to-contribute-to-open-source-on-github)”和“[关于个人仪表板](/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/about-your-personal-dashboard#staying-updated-with-activity-from-the-community)”。
|
||||
您可以对仓库和主题加星标以在 {% data variables.product.product_name %} 上发现类似的项目。 当您为存储库或主题添加星标时, {% data variables.product.product_name %} 可能会在您的个人仪表板上推荐相关内容。 更多信息请参阅“[查找参与 {% data variables.product.prodname_dotcom %} 上的开源项目的方法](/github/getting-started-with-github/finding-ways-to-contribute-to-open-source-on-github)”和“[关于个人仪表板](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-personal-account-settings/about-your-personal-dashboard#staying-updated-with-activity-from-the-community)”。
|
||||
{% endif %}
|
||||
|
||||
对仓库加星标也可表示赞赏仓库维护员的工作。 许多 {% data variables.product.prodname_dotcom %} 的仓库评级取决于仓库拥有的星标数。 此外,[Explore](https://github.com/explore) 也会根据星标数显示最受欢迎的仓库。
|
||||
|
||||
@@ -28,9 +28,9 @@ shortTitle: 关联文本编辑器
|
||||
$ git config --global core.editor "atom --wait"
|
||||
```
|
||||
|
||||
## 使用 Visual Studio Code 作为编辑器
|
||||
## Using {% data variables.product.prodname_vscode %} as your editor
|
||||
|
||||
1. 安装 [Visual Studio Code](https://code.visualstudio.com/) (VS Code)。 更多信息请参阅 VS Code 文档中的“[设置 Visual Studio Code](https://code.visualstudio.com/Docs/setup/setup-overview)”。
|
||||
1. Install [{% data variables.product.prodname_vscode %}](https://code.visualstudio.com/) ({% data variables.product.prodname_vscode_shortname %}). For more information, see "[Setting up {% data variables.product.prodname_vscode_shortname %}](https://code.visualstudio.com/Docs/setup/setup-overview)" in the {% data variables.product.prodname_vscode_shortname %} documentation.
|
||||
{% data reusables.command_line.open_the_multi_os_terminal %}
|
||||
3. 输入此命令:
|
||||
```shell
|
||||
@@ -68,9 +68,9 @@ shortTitle: 关联文本编辑器
|
||||
$ git config --global core.editor "atom --wait"
|
||||
```
|
||||
|
||||
## 使用 Visual Studio Code 作为编辑器
|
||||
## Using {% data variables.product.prodname_vscode %} as your editor
|
||||
|
||||
1. 安装 [Visual Studio Code](https://code.visualstudio.com/) (VS Code)。 更多信息请参阅 VS Code 文档中的“[设置 Visual Studio Code](https://code.visualstudio.com/Docs/setup/setup-overview)”。
|
||||
1. Install [{% data variables.product.prodname_vscode %}](https://code.visualstudio.com/) ({% data variables.product.prodname_vscode_shortname %}). For more information, see "[Setting up {% data variables.product.prodname_vscode_shortname %}](https://code.visualstudio.com/Docs/setup/setup-overview)" in the {% data variables.product.prodname_vscode_shortname %} documentation.
|
||||
{% data reusables.command_line.open_the_multi_os_terminal %}
|
||||
3. 输入此命令:
|
||||
```shell
|
||||
@@ -107,9 +107,9 @@ shortTitle: 关联文本编辑器
|
||||
$ git config --global core.editor "atom --wait"
|
||||
```
|
||||
|
||||
## 使用 Visual Studio Code 作为编辑器
|
||||
## Using {% data variables.product.prodname_vscode %} as your editor
|
||||
|
||||
1. 安装 [Visual Studio Code](https://code.visualstudio.com/) (VS Code)。 更多信息请参阅 VS Code 文档中的“[设置 Visual Studio Code](https://code.visualstudio.com/Docs/setup/setup-overview)”。
|
||||
1. Install [{% data variables.product.prodname_vscode %}](https://code.visualstudio.com/) ({% data variables.product.prodname_vscode_shortname %}). For more information, see "[Setting up {% data variables.product.prodname_vscode_shortname %}](https://code.visualstudio.com/Docs/setup/setup-overview)" in the {% data variables.product.prodname_vscode_shortname %} documentation.
|
||||
{% data reusables.command_line.open_the_multi_os_terminal %}
|
||||
3. 输入此命令:
|
||||
```shell
|
||||
|
||||
@@ -37,7 +37,7 @@ In a wide browser window, there is no text that immediately follows the {% data
|
||||
|
||||
On {% data variables.product.prodname_dotcom_the_website %}, each account has its own plan. Each personal account has an associated plan that provides access to certain features, and each organization has a different associated plan. If your personal account is a member of an organization on {% data variables.product.prodname_dotcom_the_website %}, you may have access to different features when you use resources owned by that organization than when you use resources owned by your personal account. For more information, see "[Types of {% data variables.product.prodname_dotcom %} accounts](/get-started/learning-about-github/types-of-github-accounts)."
|
||||
|
||||
If you don't know whether an organization uses {% data variables.product.prodname_ghe_cloud %}, ask an organization owner. For more information, see "[Viewing people's roles in an organization](/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/viewing-peoples-roles-in-an-organization)."
|
||||
If you don't know whether an organization uses {% data variables.product.prodname_ghe_cloud %}, ask an organization owner. For more information, see "[Viewing people's roles in an organization](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-membership-in-organizations/viewing-peoples-roles-in-an-organization)."
|
||||
|
||||
### {% data variables.product.prodname_ghe_server %}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user