Yes! You can import your code from GitHub into either:
- A new project, or
- An existing project
If you would like to create a new project by importing an existing GitHub Repo:
- Go to the Create Project page.
- Scroll down until you see the Import from GitHub option.
- Copy the GitHub URL for your repo and paste it into the box and then click Let's go.
If you would like to import a GitHub repo into an existing Glitch project:
- In the project editor view, click Tools on the lower-left side of the page.
- In the Tools menu, click Import and Export.
- Now, click Import from GitHub.
- In the popup, enter the GitHub repo that you want to import code from, and then click OK.
Your import will include all the files and full commit history, which is viewable in Glitch Rewind.
- Public repos should work without issue.
- Private repos require authentication.
Note the following:
- If you're trying to import from a GitHub organization's repo, be sure that the organization admin approves third-party access for Glitch.
- The disk space limit for free projects is 200MB and 400MB for Boosted Apps. If you are importing a project that is larger than this, you may receive an error.