While using 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.
To export your changes:
Browse 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.