Keep your Lovable GitHub fork in sync with our step-by-step guide. Learn to fork, clone, add upstream, fetch updates, and merge/rebase changes to push the latest commits.
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: Fork the Lovable Repository on GitHub
Go to the original Lovable project page (for example, https://github.com/original-owner/lovable
) and click the Fork button in the top-right corner. This creates your own copy under https://github.com/your-username/lovable
.
Step 2: Clone your fork to your local machine
Open your terminal and run the following commands to make a local copy of your fork:
git clone https://github.com/your-username/lovable.git
cd lovable
Step 3: Add the original Lovable repo as an upstream remote
Link your local repo to the original upstream so you can fetch updates:
git remote add upstream https://github.com/original-owner/lovable.git
git remote -v
This should show two remotes:
origin
pointing to your forkupstream
pointing to the original repo
Step 4: Fetch updates from the upstream repository
Download any new commits and branches from upstream without modifying your local branches:
git fetch upstream
Step 5: Merge or rebase upstream changes into your local branch
Decide how you want to integrate changes:
git checkout main
git merge upstream/main
git checkout main
git rebase upstream/main
Resolve any conflicts if prompted, then continue with git merge --continue
or git rebase --continue
.
Step 6: Push the synced branch to your GitHub fork
After merging or rebasing, update your GitHub fork so it matches the upstream:
git push origin main
Step 7: Verify the sync on GitHub
Navigate to https://github.com/your-username/lovable
. You should see the latest commits from the original Lovable repository reflected on your main
branch.
Step 8: (Optional) Use GitHub Desktop to sync your fork
For a GUI approach:
When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.