I created a CodeSandbox
from github repo. How can I sync to CodeSandbox
if there are some commits pushed to github repo? I see there is a github view on Codesandbox but it doesn't show any pull
action.
Asked
Active
Viewed 1.0k times
6

Joey Yi Zhao
- 37,514
- 71
- 268
- 523
4 Answers
6
Visit https://codesandbox.io/s/github and import your GitHub repo there, you can push to your GitHub repo for your CodeSandbox editor using the GitHub button by the left-hand side of your screen, sign in then put in the commit message and create a pull request.

Shodipo Ayomide
- 1,329
- 13
- 20
2
According to codesandbox docs
The imported repository will always stay up to date with your latest commits. This means that any change to the GitHub repository will be reflected immediately to the sandbox.

Ivan V.
- 7,593
- 2
- 36
- 53
-
1kind of doesnt in my case. I have waited 1-2 hours now its still the same. – The Fool Jun 06 '21 at 20:46
-
@TheFool The documentation is a little sparse & confusing. There are two ways to import a repo from GitHub, one of which is via the `Create Sandbox` button, then `Import Project`. This method forces you to create a _fork_ of the GitHub project, which apparently **won't** stay in sync. Second method is via the [GitHub Import Wizard](https://codesandbox.io/s/github) which [the docs link to](https://codesandbox.io/docs/importing#import-from-github). This method appears to create a template. I presume this version is what the docs claim will stay in sync. – kentr May 16 '22 at 05:56
2
use Githubbox.com.
The simplest solution is to use GithubBox. From the CodeSandbox docs:
Append
"box"
to your github.com URL in between"hub"
and".com"
and it will redirect to CodeSandbox.
Example:
https://github.com/expressjs/express => https://githubbox.com/expressjs/express

Shaya Ulman
- 1,299
- 1
- 12
- 24