# Existing AI Studio app lost GitHub sync after connecting a second AI Studio app part 2

**URL:** <https://discuss.ai.google.dev/t/existing-ai-studio-app-lost-github-sync-after-connecting-a-second-ai-studio-app-part-2/186086>\
**Category:** Google AI Studio\
**Tags:** build\
**Created:** [September 30, 2026, 6:12am UTC](https://discuss.ai.google.dev/t/existing-ai-studio-app-lost-github-sync-after-connecting-a-second-ai-studio-app-part-2/186086 "2026-09-30T06:12:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Bryce\_Watson](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/bryce_watson/32/154194_2.png) [@Bryce\_Watson](https://discuss.ai.google.dev/u/Bryce_Watson)\
**Post date:** [October 1, 2026, 4:07am UTC](https://discuss.ai.google.dev/t/existing-ai-studio-app-lost-github-sync-after-connecting-a-second-ai-studio-app-part-2/186086/2 "2026-10-01T04:07:00Z")

</div>

Since the repo’s still there on GitHub, the main thing is not to lose the AI Studio workspace while this gets sorted.

1. I’d export the code as a ZIP from AI Studio first, as a backup.
2. Then look on GitHub, which changes nothing: Settings \> Applications \> Installed GitHub Apps (if asramastapa-stack is an organization, it’s the org’s Settings \> Third-party Access \> GitHub Apps). Click Configure next to Google AI Studio. If Repository access is set to “Only select repositories”, check that JSON-tes-masjid is still listed. It’s worth a look because this started right when you connected another repo.
3. If it’s missing, add it back and press Try again in AI Studio. That’s a small change on GitHub, but it only gives access back.
4. If it’s listed and sync still fails, one or two people in [this older thread](https://discuss.ai.google.dev/t/issue-integrating-github-with-build/106529) fixed a different GitHub error in Build mode by revoking Google AI Studio under Authorized GitHub Apps and reconnecting. Others said it didn’t help, and I can’t promise it keeps your repo link, so I’d leave that until Google replies.

If nothing works, you can keep GitHub current by hand: clone the repo, make a new branch, run `git rm -r -q .` to clear the tracked files, then unzip the export so its files sit at the top of the folder (not inside a subfolder) and run `git add -A`. Check `git status` before you commit: if a `.env` file with a real key is staged, add it to `.gitignore`, then run `git rm --cached .env` and `git add .gitignore` so the key stays out and the ignore rule goes in with the commit. Then commit and push the branch.

---

_[View the full topic](https://discuss.ai.google.dev/t/existing-ai-studio-app-lost-github-sync-after-connecting-a-second-ai-studio-app-part-2/186086)._
