Watch: Fix "Updates were rejected" when I git push | Vovy
Watch Vovy do it on a Mac: "git push says rejected, the remote contains work that you do not have locally". Vovy pulls the commits you are missing, often from Lovable or a teammate, merges them with yours, and pushes without force-overwriting anyone's work.
"git push says rejected, the remote contains work that you do not have locally"
Vovy pulls the commits you are missing, often from Lovable or a teammate, merges them with yours, and pushes without force-overwriting anyone's work.
What happens in the video
- Read the rejection: Vovy reads the "[rejected] main -> main (fetch first)" error. It means GitHub has commits you do not, and Git will not overwrite them.
- See what is new on GitHub: Vovy fetches and shows the missing commits as a card, often ones Lovable or a collaborator pushed while you worked.
- Pull and combine: Vovy runs git pull --rebase, which replays your commits on top of theirs for a tidy history.
- Resolve any conflicts: If both sides edited the same lines, Vovy walks you through each conflict before continuing.
- Push normally: Vovy pushes without --force and shows a card with the combined history, so nobody's work was lost.
Read the step-by-step guideLoading...