I had the exact same issue and managed to fix it. Here’s what worked for me:
- Clear your browser data (cache and cookies).
- In AI Studio, open the workspace where you’re experiencing the issue and unlink the existing GitHub repository.
- Then go to GitHub → Settings → Applications. I don’t remember whether I uninstalled the GitHub App first or revoked the GitHub authorization first, so I’d recommend doing both:
- Uninstall the AI Studio GitHub App from Installed GitHub Apps.
- Revoke the authorization from Authorized OAuth Apps.
- Go back to AI Studio and create a Remix of your current project.
- In the remixed project, open Settings → GitHub and click Install & Authorize.
- Complete the GitHub authentication and grant Read & Write access to All repositories.
- After GitHub redirects you back to AI Studio, create a new repository. Don’t use the exact same repository name—change it slightly (even adding one extra character is enough).
- Once the new repository is created, AI Studio should load the file differences and the Commit Changes option should appear.
This completely resolved the issue for me. Hopefully it works for you as well.