Same issue here! When I click "fork from main" in V0, it doesn't actually fork from my current GitHub main branch- it seems to pull from some random older commit instead, causing missing files and sync headaches.
My workaround that fixes it:
I create a new branch (say, v0-sync-fixes) from V0 (at this stage it doesn't match my remote main):
Fetch that branch (v0-sync-fixes) locally, manually copy changes from main, and push to remote v0-sync-fixes. After this, V0 syncs properly since the branch now exactly matches the actual main!
Git commands:
1# After creating branch in V0 (e.g., v0-sync-fix)2git fetch origin3git checkout v0-sync-fix45# Remove ALL content and replace with main's exact content6git rm -rf .7git checkout main -- .8git add .9git commit -m "Reset branch to match main exactly"10git push origin v0-sync-fix
The core issue: V0's branch doesn't match my actual github remote state, so I need an additional step to push from local (with actual state) to fix the sync.