Whenever Gemini makes changes to your files, it pops up a little "file changes box". Once that's no the current version, the "current" text in the top right of the box changes to a restore button. Clicking the button will take you back to that version of the files, similarly to rolling back to a git commit.