Announcing App Script Saver™. A free Google add-on that streamlines saving versions of Google Apps Scripts™ projects.
App Script Saver™ is designed to make the process of saving versions of a Google Apps Script™ fast and simple. It's a tool designed for developers of Google apps and add-ons.
Unlike many other Google Workplace™ products like Docs and Sheets that are constantly saving versions of your work as you go along, Google scripts have no automatic saving, nor any "one-button" saving. One can use Deployment to archive script versions, but Deployment is not really designed for this purpose. Rather, it is for updating (and keeping track of) new app user features. Moreover, it requires a many step process to save a version.
As the app's sidebar menu to the left indicates, there are four "things" the app can do:
Save a new version of an existing project.
Revert to a prior version. This is a brand new feature. Click for more info.
Add a new project to the list of projects you are working on and which, you will want to save versions of during the development process.
A means of downloading your project code so it can be shared with others. The code, timestamped, will download into the sidebar and you can then select all, and copy and paste into a Google Doc™, email, etc.
In a nutshell: App Script Saver provides the most efficient way to create intentional code snapshots that appear immediately in Project History and can be quickly reviewed or restored. Unlike using Deployments—which are designed for managing releases and are awkward to use for code rollback—App Script Saver creates true Project History versions without cluttering deployment history or complicating release workflows.
In addition, App Script Saver offers functionality not available in the Apps Script IDE itself, including:
quickly and easily reverting to a prior version,
exporting an entire Apps Script project’s source code in one operation, and
extracting a complete list of project file names.
These features make it easier to audit, share, review, or archive Apps Script projects outside the editor—tasks that otherwise require manual copying or third-party tools.