Hi Anvil Team,
I’ve been using Anvil with my Year 11 students and they are loving it. I want to talk about Version Control and GIT specifically, but before I talk about branches etc, I want to do a simple restore of a previous version. (i.e. they have made a mistake and need to roll back two versions).
It seems like the feature described here is no longer available? Is that correct? I’m trying to avoid getting into branches, merging etc at this stage…
Anvil Docs | Version Control
Thanks
Colin
Those screenshots seem to show the old UI.
In the new UI you can find the commits at the bottom, in the version history panel below the code editor, as shown here: Anvil Docs | Version Control and Collaboration
You can double click on any commit to check it out in read only mode, you can create a branch on it so you can edit it, or you can right click on it and reset the current branch there.
1 Like
Thanks I just needed to get my head around that the faulty code (or reduntant code) will still sit there as an orphaned branch. This is probably more Git territory here, but is there anyway to remove these orphaned branches that are no longer needed?

There is no way.
The Anvil server may (or may not) do some periodic cleanup and purge unused commits. But I wouldn’t count on it.
1 Like