[Help] How to re-establish the link with GitHub in AI Studio?

Same issue here for 2 days now and tried all sorts; Chrome, Edge, Safari - Incognito, InPrivate, Private Browsing…NOTHING WORKS! My website was scheduled to go Live this weekend, published successfully to my Hosting but the last few change for Go Live wont update. What a nightmare.

What I did was share the project with another Google account and create a new Github account!
It worked for me. However, I’m still waiting for the Google AI Studio team to fix this issue, since the one that went bad was my main account.

When you share project, the options are limited to the other account it seems. On the shared-to account, I can only see Settings, Share and Remix on the top right menu. How do you sync up to the new Github account?

Remix. It allows the new Google Account to continue development and then you can sync to a “New” Github account.

I tried all the usual fixes, but unfortunately, nothing worked for me. I don’t feel confident using Google AI Studio for serious projects anymore; I’ve spent months developing my apps on the platform, only to feel unsupported in the end.

I started using Cursor yesterday—the learning curve is steeper, but I already have two apps running with GitHub sync and Vercel deployment. I’m on the free version for now, but I think the subscription will be well worth it for a platform that is well-maintained and actually supports its users when things get tough.

Sorry, Google!

Best regards

Peter

Good move!
I was teaching a group of students to use Google Antigravity instead to get around this, since the Google AI Studio team just didn’t have time to fix this issue.

I got my GitHub Sync with Google AI Studio issue fixed!!!

Here is how:

:white_check_mark: Step‑by‑Step Solution1. Revoke GitHub Access

  • Go to GitHub → click your profile picture → Settings

  • Navigate to Applications → Authorized OAuth Apps

  • Find the related AI Studio or Google app → click Revoke Access

  1. Uninstall the GitHub App

    • In Settings → Installed GitHub Apps

    • Locate the app → click Uninstall

  2. Log Out of All Google Accounts

    • Sign out from every Google account in your browser

    • Make sure no accounts remain logged in (Gmail, Drive, AI Studio, etc.)

  3. Clear AI Studio Cache

    • Open Google AI Studio

    • Clear browser cache and cookies (especially for [aistudio.google.com](http://aistudio.google.com))

    • Refresh the page

  4. Log Back In and Sync

    • Sign in again using the correct AI Studio account

    • Click Sync or re‑bind the account

    • Test to confirm everything works properly

Kevin Chen . Stonez56創客工坊

Hi Kevin,

Thank you very much for your detailed step-by-step guidance. I really appreciate the time and effort you put into outlining the process so clearly—it’s a great help :+1:

I’ll go through the procedure as described and will get back to you with an update once everything has been completed.

Thanks again for your support.

Best regards,
Peter

You are welcome!
BTW, if you don’t like to “Clear browser cache and cookies”, simply use an in-private browser mode! It might be easier!

Good luck!

Does anybody here know how to import a github repository to google ai studio?

Here is the solution:
I got my GitHub Sync with Google AI Studio issue fixed!!!

Here is how:

:white_check_mark: Step‑by‑Step Solution1. Revoke GitHub Access

  • Go to GitHub → click your profile picture → Settings

  • Navigate to Applications → Authorized OAuth Apps

  • Find the related AI Studio or Google app → click Revoke Access

  1. Uninstall the GitHub App

    • In Settings → Installed GitHub Apps

    • Locate the app → click Uninstall

  2. Log Out of All Google Accounts

    • Sign out from every Google account in your browser

    • Make sure no accounts remain logged in (Gmail, Drive, AI Studio, etc.)

  3. Clear AI Studio Cache

    • Open Google AI Studio

    • Clear browser cache and cookies (especially for [aistudio.google.com](http://aistudio.google.com/))

    • Refresh the page

  4. Log Back In and Sync

    • Sign in again using the correct AI Studio account

    • Click Sync or re‑bind the account

    • Test to confirm everything works properly

Kalid <notificationsdiscuss.ai.google.dev> 於 2026年5月23日週六 下午5:02寫道:

This did not work for me.

Failed to create GitHub repository, Insufficient permissions to create the GitHub repository. Please check your permissions for the AI Studio App on GitHub.

– Deleted/Revoked Google AI Studio app in GitHub Apps
– Verified no Google AI Studio app in GitHub
– Logged out of Google accounts
– Cleared browsing cache
– Opened Google AI Studio and cleared cache cookies for aistudio.*
– Closed browser
– Logged back into Google AI Studio and tried to create repo and failed with message above

This was working before I upgraded to Pro account.

Hi Everyone. I found a Trick that worked for me.

My Situation == I had changed my name on GitHub and so the old projects linked to that name could not sync any longer so I tried to unlink and relink

To Unlink, I created a Remix(copy), Then I revoked AI studio on GitHub(not advised), removed GitHub in my google account permission. Back to the Remix, It cleared GitHub and prompted me to create a new Repo. But when I added the details, it couldn’t link because AI Studio app was no longer in my github and i got the error – Failure to create …

The cool trick that worked is,

Instead of download Ai Studio app from 3rd parties which is not safe, I used another Gmail account with no AI studio account and I logged in.

Then I tried to build something then I clicked on Settings>>GitHub>>Connect to GitHub

And that’s it.

Went back to my main account, created a new repo and everything worked like a Charm

PS: If you see this before unlinking, DO NOT REVOKE AI STUDIO ON GITHUB. Just Remix, remove GitHub account permissions and sync your new Repo to Github

I hope this helps!

Just to add, no need to clear cache or delete browsing data

Thank you

I did not understand one thing that connecting from another Google account to Github will resolve the connection issue with original Google account, how?

Your problem is to sync AI studio’s code into GitHub right?

Hello, I recently disconnected google ai studio from github to try to fix some issues but when i tried to connect it back it wants me to create a new repository. there is no option to link back to the old repository. Can anyone suggest the solution?

I facing the same issue.

You can’t. Not to my knowledge. Even the .. Gemini agrees (and apologizes for suggesting it as always)