close
The Wayback Machine - https://web.archive.org/web/20221110211211/https://docs.github.com/en/codespaces/troubleshooting/exporting-changes-to-a-branch
Skip to main content

Exporting changes to a branch

This article provides steps for exporting your codespace changes to a branch.

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:

  1. Navigate to the "Your codespaces" page at github.com/codespaces. Or, for an individual repository, click the Code menu.

  2. Click the ellipsis (...) to the right of the codespace you want to export from.

  3. Select Export changes to branch.

    Export changes to a branch

  4. From the popover, select Create branch.