codespace の作成について
GitHub.com または Visual Studio Code のいずれかに codespace を作成できます。 各コードスペースは、作成者だけが利用できます。 他者のcodespaceで作業することはできません。
Codespaces はリポジトリの特定のブランチに関連付けられており、リポジトリを空にすることはできません。 リポジトリごと、さらにはブランチごとに1つ以上のcodespaceを作成できます。 However, each user account has a limit of 10 codespaces. この制限に達した場合に新しいcodespaceを作成したいなら、まずcodespaceを削除しなければなりません。詳しい情報については、「codespace を削除する」を参照してください。
When you create a codespace, a number of steps happen to create and connect you to your development environment:
- Step 1: VM and storage are assigned to your codespace.
- Step 2: Container is created and your repository is cloned.
- Step 3: You can connect to the codespace.
- Step 4: Codespace continues with post-creation setup.
For more information on what happens when you create a codespace, see "Deep Dive."
Visual Studio Codeでcodespace内で開発をする間に、コードを編集し、デバッグし、Gtiのコマンドを使うことができます。 詳しい情報についてはVisual Studio Codeのドキュメンテーションを参照してください。
作成した利用可能なすべてのcodespaceはgithub.com/codespacesで見ることができます。
Access to Codespaces
Codespaces are available for repositories owned by organizations using GitHub Team and GitHub Enterprise Cloud.
When you have access to Codespaces, you'll see a "Codespaces" tab within the Code drop-down menu when you view a repository.
You'll have access to codespaces under the following conditions:
- You are a member of an organization that has enabled Codespaces and set a spending limit.
- An organization owner has granted you access to Codespaces.
- The repository is owned by the organization that has enabled Codespaces.
Note: Individuals who have already joined the beta with their personal GitHub account will not lose access to Codespaces, however Codespaces for individuals will continue to remain in beta.
Organization owners can allow all members of the organization to create codespaces, limit codespace creation to selected organization members, or disable codespace creation. For more information about managing access to codespaces within your organization, see "Enable Codespaces for users in your organization."
Before Codespaces can be used in an organization, an owner or billing manager must have set a spending limit. For more information, see "About spending limits for Codespaces."
If you would like to create a codespace for a repository owned by your personal account or another user, and you have permission to create repositories in an organization that has enabled Codespaces, you can fork user-owned repositories to that organization and then create a codespace for the fork.
codespace を作成する
-
GitHubで、リポジトリのメインページにアクセスしてください。
-
リポジトリ名の下で、[Branch] ドロップダウンメニューを使用して、codespace を作成するブランチを選択します。
![[Branch] ドロップダウンメニュー](https://web.archive.org/web/20211008142949im_/https://docs.github.com/assets/images/help/codespaces/branch-drop-down.png)
-
Under the repository name, use the Code drop-down menu, and in the Codespaces tab, click New codespace.
![[New codespace] ボタン](https://web.archive.org/web/20211008142949im_/https://docs.github.com/assets/images/help/codespaces/new-codespace-button.png)
If you are a member of an organization and are creating a codespace on a repository owned by that organization, you can select the option of a different machine type. From the dialog, choose a machine type and then click Create codespace.


