Bi-directional GitHub Sync / Push to Existing Repository in Google AI Studio

Problem:
Currently, Google AI Studio allows importing an existing GitHub repository (e.g., user/project), but when exporting or syncing code updates, the UI forces the creation of a brand new repository (Create new repository). There is no option to push commits back to the imported repository or select a target branch.

>

Impact on Developers & Production Deployments:

  • Breaks Continuous Deployment (CI/CD): Projects connected to Vercel/Cloudflare Pages and custom domains cannot auto-deploy updates because AI Studio forces a new repository instead of committing to the linked repo.
  • Destroys Git History: Creating a new repo for every edit session breaks commit history and clutters GitHub.
  • Permission Scope Lock: Forcing new repo creation requires account-wide repository creation scopes rather than scoped access to specific repositories.

>

Requested Solution:

  1. Add a “Sync / Push to Existing Repository” button allowing users to select an existing repo and target branch (e.g., main).
  2. Enable true bi-directional Git sync (Pull on import, Push on update).
3 Likes