If you're working in a codespace, you can publish it from the {% data variables.product.prodname_vscode_shortname %} web client or desktop application.
{% data reusables.codespaces.source-control-activity-bar %}
-
To stage your changes, click + next to the file you've added or changed, or next to Changes if you've changed multiple files and you want to stage them all.
[!NOTE] If you start from {% data variables.product.company_short %}'s blank template, you will not see a list of changes unless you have already initialized your directory as a Git repository. To publish codespaces created from the blank template, click Publish to {% data variables.product.company_short %} in the "Source Control" view, then skip to step 5.
-
To commit your staged changes, type a commit message describing the change you've made, then click Commit.
-
Click Publish Branch.
-
In the "Repository Name" dropdown, type a name for your new repository, then select Publish to {% data variables.product.company_short %} private repository or Publish to {% data variables.product.company_short %} public repository.
The owner of the new repository will be the {% data variables.product.prodname_dotcom %} account with which you created the codespace.
-
Optionally, in the pop-up that appears in the lower right corner of the editor, click Open on {% data variables.product.company_short %} to view the new repository on {% data variables.product.github %}.