Import Git Repository
Importing a Git Repository to Vercel
You can import an existing Git repository to Vercel by following these steps:
1. Connect to your Git provider
On the Vercel New Project page, under the "Import Git Repository" section, select your preferred Git provider (GitHub, GitLab, or BitBucket) 1. You'll need to sign in to your chosen Git provider account when prompted.
2. Import your repository
After connecting to your Git provider, you'll see a list of your repositories. Find the one you want to import and click the "Import" button next to it 1. If you don't see your repository, you may need to configure GitHub App permissions 2.
3. Configure project settings (optional)
Vercel will automatically detect your framework and necessary build settings, but you can customize these if needed:
- Expand the "Build & Output Settings" section to modify the framework, build command, output directory, or install command
- Add environment variables by expanding the "Environment Variables" section
- For additional configuration, you can add a
vercel.json
file to your project 1
4. Deploy your project
Click the "Deploy" button to create the project and deploy it based on your chosen configurations 1. Vercel will build and deploy your project automatically.
5. Access your deployment
Once deployment is complete, you can view your project by selecting it in the dashboard and clicking on the domain. Your site is now accessible to anyone with the URL 1.
If you prefer using the CLI instead, you can deploy your existing project with this command:
vercel --cwd [path-to-project]
Let me know if you need help with any specific part of the import process!
Learn how to fix GitHub repository visibility issues
Fixing GitHub Repository Visibility Issues with Vercel
When importing a GitHub repository to Vercel, you might encounter visibility issues where some repositories don't appear in the list. Here's how to fix these problems:
Understanding the Issue
Vercel uses a GitHub App to access your repositories. If you can't see certain repositories during import, it's typically because:
- The Vercel GitHub App doesn't have permission to access those repositories
- The repositories belong to an organization that hasn't granted access
- The GitHub App permissions need to be updated
How to Fix Repository Visibility Issues
1. Check and Update GitHub App Permissions
- Go to your GitHub account settings
- Navigate to "Applications" → "GitHub Apps" or "Installed GitHub Apps"
- Find the Vercel app in the list and click "Configure"
Under "Repository access", you have two options:
- All repositories: Grants Vercel access to all current and future repositories
- Only select repositories: Lets you choose specific repositories to grant access to
If you've selected "Only select repositories", make sure your desired repository is in the list. If not, add it.
2. Configure Organization Access
If the repository belongs to an organization:
- Go to your organization's GitHub settings
- Navigate to "Third-party access" or "GitHub Apps"
- Find the Vercel app and click "Configure"
- Grant access to the repositories you want to deploy
3. Refresh Repository List in Vercel
After updating permissions:
- Go back to the Vercel import page
- Click on "Refresh" next to your GitHub account
- The updated list of repositories should now appear
4. Troubleshooting Additional Issues
If you still can't see your repository:
- Private repositories: Ensure your GitHub account plan supports private repositories
- Recently created repositories: There might be a slight delay before new repositories appear
- Repository transfer: If you've recently transferred the repository, try disconnecting and reconnecting your GitHub account
5. Reconnect GitHub Account
If all else fails:
- Go to Vercel account settings
- Navigate to "Git Integrations"
- Disconnect your GitHub account
- Reconnect and authorize with the correct permissions
Verifying Success
After making these changes, return to the "Import Git Repository" page on Vercel. Your previously hidden repositories should now be visible and available for import.
Return to the import process with your newly visible repositories