1
0
mirror of synced 2026-01-02 12:04:38 -05:00
Files
docs/data/reusables/codespaces/about-publishing-templates.md
Isaac Brown 31274d9415 [Universe] - Codespaces Templates - combined work (#32149)
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: hubwriter <hubwriter@github.com>
Co-authored-by: JP Ungaretti <19893438+jungaretti@users.noreply.github.com>
2022-11-03 13:30:55 +00:00

944 B

When you work in a codespace created from a template, your work is saved on a virtual machine in the cloud, but it is not stored in a repository on {% data variables.product.prodname_dotcom %}.

You can save your files, close and stop your codespace, and come back to your work later. Typically, Git will come preinstalled, and the working directory will be automatically initialized as a Git repository unless you started from {% data variables.product.company_short %}'s blank template. This means you can immediately use Git for local source control, such as adding and committing files.

However, if you delete an unpublished codespace, or if it's automatically deleted by being left unused for the duration of the retention period, then your work will be deleted too. To persist your work, and to allow others to work on your project, you will need to publish your codespace to a repository on {% data variables.product.prodname_dotcom %}.