I have build an app on google ai studio and I have configured my github repo with it.
At the time of connection it pushed all the changes into a single commit to selected repo.
But after that I made more and more changes on the app which are not being commited and pushd to repo and I am trying to find a way/option provided by google ai studio to commit and push the changes to the connected repo whenever I want.
Like I fixed a bug and want to push the fix to repo so there should be a way to do that. I need help to find the way of doing that.
Hi Usama_Arshad,
Yes, you should be pushing changes to GitHub often, and Google AI Studio is very capable of this. While AI Studio will automatically commit your changes for you and queue them, you are expected to push them to your repository manually. Pushing means sending them to your GitHub cloud account or repository. You are in control and must decide when to push changes to your GitHub repo. Here is how:
You’ll need to connect your GitHub account to your project by clicking the Version History icon in the top-right corner of your project, to the left of the gear icon.
Click GitHub > name your repository > optionally add a description > choose whether you’d like your repository to be private or public > click Create GitHub repository.
After you create the repository, make sure you push your committed changes. After your first push, you should see a GitHub logo in the top-right corner of your project. This will show you the changes it has been tracking since your initial push. To push again, simply click Push changes.
I hope that helps.
Regards,
Ray
Hi @TechRay thanks for explaining.
My github was connected but apparently I had connected 2 repositories that was causing the issue. I removed one of them and only kept the one in which I will be pushing my commits and I was able to see my uncommited changes, (but no GitHub logo appeared in the top-right corner of my project) everytime I want to see my changes I have to click the settings button (where all the different options like Chat, Versions, Integrations, Github, etc appears) and then select the Github option there to see my changes to commit.
Issue:
One more thing I faced that even after removing the extra repo connection with my project, I still faced the issue that when I opened the Github option from settings it was showing the
Sync to GitHub
**my-github/myRepo on main
**
and then below them instead of showing the files changed it was showing a button to “Login to Github”. I cllicked the button and logged in and came back to the google-studio’s page where i pressed button “Login to Github” from. But still it was showing same button, I tried reloading the page but nothing changed.
Fix/Workaround:
The workaround to pass this was to press the “Login to Github” and after logging in it takes you to github config page where your selected repositories are showing, YOU HAVE TO ADD ANOTHER REPO TO THE LIST TO ENABLE THE SAVE BUTTON, AFTER SAVE BUTTON IS ENABLED YOU CAN DELETE THAT REPO FROM LIST IF YOU WANT, OTHERWISE JUST CLICK SAVE and it will redirect you back to google-ai-studio and it will show your changes too.
Note: This issue happened to me after I didn’t worked on that project tab for one or more day and it was just opened in background.