Codesandbox-client: Codesandbox is not in sync with GIt Repo

Created on 18 Sep 2019  路  5Comments  路  Source: codesandbox/codesandbox-client

馃悰 bug report

I am expecting the git repo changes on codesandbox automatically but it is not happening.

Description of the problem

I have committed some code from my local computer to git and when I tried to access the codesandbox attached with the same git repo, doesn't have the updated code. It is not in sync with the code which I have uploaded from my home computer.

How has this issue affected you? What are you trying to accomplish?

I am not getting the updated code on codesandbox.

Link to sandbox: link (optional)

https://codesandbox.io/s/crown-clothing-g6fhz

Your Environment

WINDOWS 10

| Software | Name/Version |
| ---------------- | ------------ |
| 小odesandbox | https://codesandbox.io/s/crown-clothing-g6fhz
| Browser | CHROME
| Operating System | WINDOWS 10

Need Info

Most helpful comment

Hey @Harshu53 ,

Only the sandbox directly imported from the GitHub repo - which in your case is https://codesandbox.io/s/github/Harshu53/crown-clothing - is kept in sync with the repo, all other sandboxes forked from it - like the one you provided - are not. You can think of a forked sandbox as a git branch, it doesn't automatically sync to the branch it was created from.

All 5 comments

Hey @Harshu53 ,

Only the sandbox directly imported from the GitHub repo - which in your case is https://codesandbox.io/s/github/Harshu53/crown-clothing - is kept in sync with the repo, all other sandboxes forked from it - like the one you provided - are not. You can think of a forked sandbox as a git branch, it doesn't automatically sync to the branch it was created from.

You can read more about how the GitHub integration works in CodeSandbox here: https://codesandbox.io/docs/git .

@lbogdan Thanks for the information but I can't find https://codesandbox.io/s/github/Harshu53/crown-clothing into my code sandbox listing, Why so ?

Because it's technically not your sandbox, you can think of it as "owned" by GitHub, as it will change every time the repo changes.

Great! Thank you

Was this page helpful?
0 / 5 - 0 ratings

Related issues

supersonicclay picture supersonicclay  路  3Comments

alansouzati picture alansouzati  路  3Comments

faceyspacey picture faceyspacey  路  3Comments

waruyama picture waruyama  路  3Comments

Haroenv picture Haroenv  路  3Comments