Learn how to track changes with Anvil’s built-in version control
Without version control software like Git, it can be complicated to track the changes you make to code. Anvil, the platform for building web apps with nothing but Python, comes with built-in version control backed by Git.
In this article, I’m going to give a quick run-through of version control in Anvil, showing you how simple it is to use and how powerful it can be. Let’s get started.
What Does Anvil’s Version Control Actually Do?
Anvil’s version control, like many other version control systems, does a number of things. It lets you:
- Track changes to your app
- Create branches and work on features simultaneously
- Merge branches together
- Revert to previous app versions
- Publish specific app versions
Let’s start by looking at tracking changes.
The best way to learn about a feature is to try it out, so I’ve created a simple example app for you to use while following along with this article. The example is a simple feedback form app. Use the clone link below to get started and follow along (it’s free):
Following the clone link will take you to the Anvil Editor.
Commits are a snapshot of an entire app at a point in time. Commits are the building block units of a project’s timeline.
To view the commits of an app, click the upward arrow at the bottom of the Anvil editor and select the Version History tab.