Git Committing and PRsEdit this page
CodeSandbox allows you to import, commit, and make pull requests to GitHub repositories.
With CodeSandbox you can import any GitHub repository as a sandbox (this concept is described in more detail here). An imported sandbox will automatically stay in sync with the GitHub repository; if you make a commit to GitHub it will reflect immediately in the sandbox.
For that reason we've made GitHub sandboxes immutable, this means that you cannot make direct changes to the sandbox itself. They are treated as templates, so you can fork from them. When you create a fork of a GitHub sandbox we will still keep a reference to the original GitHub repository. This allows you to create commits and open pull requests from the forked sandboxes.
Anyone can import public GitHub repositories. You need a Pro subscription to be able to import private repos.
You can see a forked sandbox of a GitHub sandbox as a separate branch. We still keep a reference to the original branch, and we also track the changes that happen. When you create a fork of the GitHub sandbox you will see a new panel in the sidebar that looks like this:
This panel will show all the files that have been changed compared to the GitHub sandbox you forked from. When you fork a sandbox from your own repository you will be able to create a commit or open a pull request. If you don't own the repo you can only open a pull request.
If you have a sandbox that you want to have on GitHub you can export it by pressing the GitHub icon in the sidebar, entering your repository name, and clicking 'Create Repository'. We will automatically open the sandbox that's synced to the GitHub repository for you.