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

Here’s how to import code directly to your Glitch project without using GitHub:

 

  1. Compress the files:

  • On your machine, select the files that you want to import and send them to a compressed folder.

 


 

  1. Import the compressed folder:

  • In the project editor, click on assets in the file view.

  • Drag or upload the compressed folder into assets.

  • In assets, click on the compressed folder that you just uploaded and copy the URL.

 

 

  1. Download the files:

  • Open the project terminal by clicking Tools and then Terminal in the project editor.

  • In terminal, run the following command to download the compressed folder into the app:
    `wget [url of the asset]` 

  • Then, run the following command to uncompress the folder:
    `unzip [name of the downloaded asset]`

  • Finally, run `refresh` to see the new files in the project editor file view.

 

 

  1. Compare the files:

  • Sometimes your operating system will add unnecessary config files that were not part of the original code that you imported.

  • If you notice any files like this, you can delete them.

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
0 out of 0 found this helpful

scroll to top icon