Reconnect existing GitHub repository

I have an issue with AI Studio. I’m currently building an application, I was trying to push to GitHub last night, and it threw errors. So, I unlinked the GitHub, and now I’m trying to link it back. AI Studio is now trying to create a fresh repository. It’s not trying to link the GitHub repo back to the AI Studio. I don’t know what to do. I’ve been trying so many things, but it’s not linking. I need help here.

Hi, Can you please retry? We made some recent fixes in the AIS<>Github integration. If the issue still persists, please share screenshots, your email address and the AIS app id via DM

I’m facing the same issue. AI Studio only wants to create a new repository, there’s no way to re-establish a link with GitHub once broken. Importing the repository from GitHub also won’t establish the link. I can understand the difficulties of trying to match current state with a unknown existing repo in a re-link operation, but importing should be totally clean right? This is one of the reasons why I find it difficult to treat AI Studio as a serious coding tool. I really like this user experience here, but if something this simple is not addressed I’m afraid you’ll be disrupted soon. I’ve already seen this tool evolved from IDX to Firebase to this current one, I hope the team can take our requests seriously.

I managed to re-establish the link:

  • Rename the GitHub repository
  • Clone to your machine
  • In AI Studio create a new GitHub repo with the old name and push the commit
  • From your machine, change the remote to the new repo, and force push everything

AI Studio seems to work fine, and is able generate the diffs correctly despite my changing history.