Import from GitHub
Learn how to create a Replit App from your existing GitHub repository using two different methods.
Import your GitHub repository
⏰ Estimated time: two minutes
Follow this guide to import your GitHub repository into Replit using one of two convenient methods:
The fastest way to import a repository is using the direct URL method:
- Take your GitHub repository URL:
- Append it to
replit.new/
:
- Press Enter to automatically start the import process
After importing, you must:
- Choose your preferred run command or accept the detected one
- Select the appropriate language/framework if not auto-detected
- Configure any environment variables needed
- Select Done to complete the setup
For simple projects, you can should be able to simply alter the “run” command—Replit will detect the correct language/framework for you.
Next steps
Now that you’ve imported your GitHub repository, you can:
- Set up GitHub authentication for private repositories
- Configure deployment settings for your app
- Add a “Run on Replit” badge to your GitHub README
If you’re importing a private repository, you’ll must first authorize Replit to access your private GitHub repositories during the import process.
For monorepo setups, you can specify which directory to use as the root of your Replit App during the import process.