SOLFIND
Web Lens
Portal home

Testing dev container configuration changes on a prebuild-enabled branch - GitHub Docs

https://docs.github.com/en/codespaces/prebuilding-your-codespaces/testing-dev-container-changes • 149 KB fetched
Open original page


Testing dev container configuration changes on a prebuild-enabled branch - GitHub Docs Skip to main content GitHub Docs Version: Free, Pro, & Team Search or ask Copilot Search or ask Copilot Select language: current language is English Search or ask Copilot Search or ask Copilot Open menu Collapse sidebar Expand sidebar Scroll breadcrumbs left * Home * Codespaces * Prebuilding your codespaces * Test dev container changes Scroll breadcrumbs right Codespaces * * * Quickstart * Getting started * What are Codespaces? * Codespaces features * The codespace lifecycle * Deep dive into Codespaces * Developing in a codespace * Develop in a codespace * Create a codespace for a repo * Create a codespace from a template * Delete a codespace * Open an existing codespace * Work collaboratively * Source control * Pull requests * Stop a codespace * Forward ports * Rebuilding a container * Default environment variables * Persist variables and files * Connecting to a private network * Machine learning * Visual Studio Code * GitHub CLI * Customizing your codespace * Rename a codespace * Change your shell * Change the machine type * Setting your user preferences * Personalize your codespaces * Set the default editor * Set the default region * Set the timeout * Configure automatic deletion * Choose the host image * Setting up your project * Adding a dev container configuration * Introduction to dev containers * Setting up a Node.js project * Setting up a C# (.NET) project * Setting up a Java project * Setting up a PHP project * Setting up a Python project * Configuring dev containers * Set a minimum machine spec * Adding features * Automatically opening files * Specifying recommended secrets * Setting up your repository * Facilitating codespace creation * Set up a template repo * Prebuilding your codespaces * About prebuilds * Configure prebuilds * Allow external repo access * Manage prebuilds * Test dev container changes * Managing your codespaces * Codespaces secrets * Repository access * Security logs * GPG verification * Managing your organization * Enable or disable Codespaces * Billing and ownership * List organization codespaces * Manage Codespaces costs * Manage secrets * Audit logs * Restrict machine types * Restrict codespace creation * Restrict base image * Restrict port visibility * Restrict timeout periods * Restrict the retention period * Reference * Access a private registry * Copilot in Codespaces * VS Code Command Palette * Security in Codespaces * Disaster recovery * Troubleshooting * Codespaces logs * Codespaces clients * Included usage * Exporting changes * Creation and deletion * Authenticating to repositories * Connection * Codespaces prebuilds * Personalization * Port forwarding * GPG verification * Working with support * github.dev editor Testing dev container configuration changes on a prebuild-enabled branch When you change the dev container configuration for a branch that's enabled for prebuilds, you should test your changes in a codespace. Who can use this feature? People with write permissions to a repository can create or edit the dev container configuration for a branch. Copy as Markdown Any changes you make to the dev container configuration for a prebuild-enabled branch will result in an update to the codespace configuration and the associated prebuild. It’s therefore important to test such changes in a codespace from a test branch before committing your changes to a branch of your repository that's actively used. This will ensure you’re not introducing breaking changes for your team. For more information, see Introduction to dev containers . Testing changes to the dev container configuration * Create a codespace from the prebuild-enabled branch whose dev container you want to change. For more information, see Creating a codespace for a repository . * In the codespace, check out a test branch. For more information, see Using source control in your codespace . * Make the required changes to the dev container configuration. * Apply the changes by rebuilding the container. For more information, see Introduction to dev containers . * After everything looks good, we also recommend creating a new codespace from your test branch to ensure everything is working. You can then commit your changes to your repository's default branch or an active feature branch, triggering an update of the prebuild for that branch. Note Creating this codespace will take longer than usual because it will not be created from a prebuild. Back to top Help and support Was this Doc helpful? Yes No Help us make GitHub Docs great! All Docs are open source. See something that's wrong or unclear? Submit a pull request. Make a contribution Still need help? Provide GitHub Feedback Contact support Expert services Blog GitHub Inc. © 2026 Terms Privacy Status Pricing

Links found on this page

  1. Skip to main content [direct]
  2. GitHub Docs [direct]
  3. Codespaces [direct]
  4. Prebuilding your codespaces [direct]
  5. Quickstart [direct]
  6. What are Codespaces? [direct]
  7. Codespaces features [direct]
  8. The codespace lifecycle [direct]
  9. Deep dive into Codespaces [direct]
  10. Develop in a codespace [direct]
  11. Create a codespace for a repo [direct]
  12. Create a codespace from a template [direct]
  13. Delete a codespace [direct]
  14. Open an existing codespace [direct]
  15. Work collaboratively [direct]
  16. Source control [direct]
  17. Pull requests [direct]
  18. Stop a codespace [direct]
  19. Forward ports [direct]
  20. Rebuilding a container [direct]
  21. Default environment variables [direct]
  22. Persist variables and files [direct]
  23. Connecting to a private network [direct]
  24. Machine learning [direct]
  25. Visual Studio Code [direct]
  26. GitHub CLI [direct]
  27. Rename a codespace [direct]
  28. Change your shell [direct]
  29. Change the machine type [direct]
  30. Personalize your codespaces [direct]
  31. Set the default editor [direct]
  32. Set the default region [direct]
  33. Set the timeout [direct]
  34. Configure automatic deletion [direct]
  35. Choose the host image [direct]
  36. Introduction to dev containers [direct]
  37. Setting up a Node.js project [direct]
  38. Setting up a C# (.NET) project [direct]
  39. Setting up a Java project [direct]
  40. Setting up a PHP project [direct]
  41. Setting up a Python project [direct]
  42. Set a minimum machine spec [direct]
  43. Adding features [direct]
  44. Automatically opening files [direct]
  45. Specifying recommended secrets [direct]
  46. Facilitating codespace creation [direct]
  47. Set up a template repo [direct]
  48. About prebuilds [direct]
  49. Configure prebuilds [direct]
  50. Allow external repo access [direct]
  51. Manage prebuilds [direct]
  52. Codespaces secrets [direct]
  53. Repository access [direct]
  54. Security logs [direct]
  55. GPG verification [direct]
  56. Enable or disable Codespaces [direct]
  57. Billing and ownership [direct]
  58. List organization codespaces [direct]
  59. Manage Codespaces costs [direct]
  60. Manage secrets [direct]
  61. Audit logs [direct]
  62. Restrict machine types [direct]
  63. Restrict codespace creation [direct]
  64. Restrict base image [direct]
  65. Restrict port visibility [direct]
  66. Restrict timeout periods [direct]
  67. Restrict the retention period [direct]
  68. Access a private registry [direct]
  69. Copilot in Codespaces [direct]
  70. VS Code Command Palette [direct]
  71. Security in Codespaces [direct]
  72. Disaster recovery [direct]
  73. Codespaces logs [direct]
  74. Codespaces clients [direct]
  75. Included usage [direct]
  76. Exporting changes [direct]
  77. Creation and deletion [direct]
  78. Authenticating to repositories [direct]
  79. Connection [direct]
  80. Codespaces prebuilds [direct]