You are using an unsupported browser. Please update your browser to the latest version on or before July 31, 2020.
close
Home > Importing & Exporting > Can I import code from a GitHub repository?
Can I import code from a GitHub repository?
print icon

Yes! 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:

  1. Go to the Create Project page.
  2. Scroll down until you see the Import from GitHub option.
  3. 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:

  1. In the project editor view, click Tools on the lower-left side of the page.
  2. In the Tools menu, click Import and Export.
  3. Now, click Import from GitHub.
  4. 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.

 

 

Got more questions? Check out our Community Forum!
Open 24/7, the forum is where Glitch makers help each other and show off all the rad apps that they have created. It's the friendliest community of coders on the Web!
Feedback
6 out of 10 found this helpful

scroll to top icon