Exporting changes to a branch
While using GitHub Codespaces, you may want to export your changes to a branch without launching your codespace. This can be useful when you have hit a spending limit or have a general issue accessing your codespace.
If your codespace is unpublished (created from a template and not associated with a repository on GitHub), then you won't be able to export changes to a branch, but you can publish the codespace to a new repository without launching the codespace. For more information, see "Creating a codespace from a template."
To export your changes to a branch:
-
Navigate to the "Your codespaces" page at github.com/codespaces. Or, for an individual repository, click the Code menu.
-
Click the ellipsis (...) to the right of the codespace you want to export from.
-
Select Export changes to branch.

-
From the popover, select Create branch.

