Versions

A version is a static copy of a script. Versions let you keep track of your changes. Once you save a version, you can't modify it. Use versions when you're working on a script that goes through many changes and iterations.

Creating versions is required when you're writing a library. For more information, see Libraries.

Create a version

A version is automatically created when you create a new deployment. You can also create a new version from an existing deployment by taking the following steps:

  1. Open your script project.
  2. At the top, click Deploy > Manage deployments.
  3. Select the active deployment to create a new version for and click Edit .
  4. In the Version section, select New version.
  5. Click Deploy.

View a previous version

To view a previously created version within your script project, take the following steps:

  1. In your script project, click Project History.
  2. Under Project history, select the version you want to view. To view the description of a version, hold the pointer over the version number.

Compare a previous version to the current version

To compare a previously created version to the current, or head, version, take the following steps:

  1. In your script project, click Project History.
  2. Under Project history, select the version you want to view.
  3. Turn on Highlight changes.

Depending on the changes you've made since the selected version, the files list might contain the following markers:

Marker Type of change Description

File added

This file is new in the current version.

File deleted

This file is no longer present in the current version.

File modified

This file has changes in the current version that weren't present in the selected version. To view the changes, click the file name.