1
0
mirror of synced 2025-12-20 02:19:14 -05:00

[Improvement]: Add details about the gh cs rebuild command (#36962)

This commit is contained in:
Sophie
2023-05-10 15:58:51 +02:00
committed by GitHub
parent fe8bd15265
commit d2fa355dea

View File

@@ -24,6 +24,7 @@ You can work with {% data variables.product.prodname_github_codespaces %} in the
- [Stop a codespace](#stop-a-codespace)
- [Delete a codespace](#delete-a-codespace)
- [Rename a codespace](#rename-a-codespace)
- [Rebuild a codespace](#rebuild-a-codespace)
- [SSH into a codespace](#ssh-into-a-codespace)
- [Open a codespace in {% data variables.product.prodname_vscode %}](#open-a-codespace-in--data-variablesproductprodname_vscode-)
- [Open a codespace in JupyterLab](#open-a-codespace-in-jupyterlab)
@@ -107,7 +108,17 @@ For more information, see "[AUTOTITLE](/codespaces/developing-in-codespaces/dele
gh codespace edit -c CODESPACE-NAME -d DISPLAY-NAME
```
For more information, see "[AUTOTITLE](/codespaces/customizing-your-codespace/renaming-a-codespace)."
For more information, see "[AUTOTITLE](/codespaces/customizing-your-codespace/renaming-a-codespace?tool=cli)."
### Rebuild a codespace
```shell
gh codespace rebuild
```
When you use this command to rebuild a codespace, it uses the `devcontainer.json` file that is currently saved in the codespace's system. This happens regardless of whether or not the current state of the file has been saved in source control.
For more information, see "[AUTOTITLE](/codespaces/setting-up-your-project-for-codespaces/introduction-to-dev-containers)."
### SSH into a codespace