How to push V0 codebase to Github?

Hi. I want to push my V0 codebase to Github. Ive used the Github integration feature in V0 but it just created an empty repo (with 1 readme file) in my Github account. What do i do to push the full V0 codebase (all files) to Github? thanks

Also, is it possible to two-way sync the codebase between V0 and Github? I’d like to be able to push the V0 codebase to Github, edit it in Cursor and then make further frontend edits in V0.

Two-way sync is coming soon, under active development right now

If your GitHub push created an empty repo instead of pushing your latest chat contents, then that sounds like a bug — could you share a chat ID so we can debug?

Also can you try doing this with a different v0 project to narrow down whether it’s just one or all of them for you

4 Likes

Try disconnecting the repo through vercel, then delete the repo in githb, then re-cerate it through v0. That worked for me. But yea its buggy with the first time creation

2 Likes

Hi. To test whether the issue is isolate to 1 project; I went to a different project / chat and clicked the Github button. A pop up said “Click to view your repository”. I clicked it and it took me to the repo from the previous project I pushed to Github. No new repo seems to have been created.

Original project i pushed to Github that only created a repo with 1 read me file:
https://v0.dev/chat/ait-odo-list-shadcn-sidebar-07-NbXrghY64wf

New project i tested pushing to Github:
https://v0.dev/chat/things3-screen-recording-prd-LykAAxcoduX

Ps, is there any way for me to share these projects with you privately in future (maybe via DM, etc)?

thanks for sharing, I’ve passed this along to the v0 team to debug

1 Like

This approach worked. I also used Chrome rather than Arc (not sure whether that made a difference). Or whether you guys have just fixed this already..

We just shipped this: