You can import your code from GitHub into either:
- A new project, or
- An existing project
New Project
If you would like to create a new project by importing an existing GitHub repo:
Here's how:
- Go to the Create Project page and scroll down until you see the Import from GitHub button, or click the New Project button and then click the Import from GitHub button.
- Copy the GitHub URL for your repo and paste it into the box and then click Let's go.
Existing Project
If you would like to import a GitHub repo into an existing Glitch project:
Here's how:
- In the project editor, click Tools at the bottom 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.
- While other languages may work on Glitch, we only support javascript. If you are importing code in another language, you may receive an error.
- 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.