Integrate GitHub with Lovable in simple steps: create an account, generate a token, connect your repo, set up webhooks, and verify the integration.
Book a call with an Expert
Starting a new venture? Need to upgrade your web app? RapidDev builds application with your growth in mind.
Step 1: Create a GitHub Account
To connect GitHub to Lovable, you first need a GitHub account. If you already have one, you can skip this step.
Step 2: Create or Identify a Repository
You need a repository to link with Lovable. You can create a new one or use an existing repository.
Step 3: Generate a Personal Access Token (PAT)
Lovable uses OAuth or PAT to access your GitHub repositories. Generating a PAT gives Lovable permission to read or write to your repo.
Step 4: Log In to Lovable
Access your Lovable dashboard to start the integration.
Step 5: Connect Your GitHub Account
Link GitHub to Lovable by providing the PAT you generated.
Step 6: Add Your Repository in Lovable
Now that GitHub is connected, select which repository Lovable should manage.
Step 7: Configure Webhooks and Permissions
Webhooks let GitHub notify Lovable of new pushes, pull requests, and other events.
Step 8: Clone, Commit, and Push to GitHub
With your repository connected, test the integration by making a commit and pushing it.
git clone https://github.com/your-username/your-repo.git
cd your-repo
echo "Hello Lovable" > README.md
git add README.md
git commit -m "Add initial README for Lovable integration"
git push origin main
your-username
and your-repo
with your actual GitHub username and repository name.master
, replace main
with master
.
Step 9: Verify the Connection in Lovable
Finally, ensure Lovable received the webhook and processed the event.
When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.