Make a commit live, lock a branch, and roll back

Choose the exact commit your customers get, close a branch to further commits, archive one you no longer need, and go back to an earlier commit.

UPDATED NOVEMBER 23, 20263 MIN READ

Your customers always get exactly one commit of your agent: the live commit. Pushing never changes it. It changes only when someone makes another commit live, which is a deliberate action in the Branches window.

#Before you make a commit live

#Make a commit live

  1. Select the branch pill in the top bar to open the Branches window.

  2. On the branch that holds the commit, select its commit count to list the commits.

  3. On the commit's row, select the rocket icon. Its tooltip reads Make followed by the commit's tag and live.

    To make a branch's newest commit live, you can use the rocket icon on the branch card instead.

  4. Read the dialog. It names the commit, says customers get this exact commit until someone makes another one live, and names the commit it replaces.

  5. Select Make live.

The commit gets the green Live chip and its branch card is outlined in green. Later commits on the same branch do not go live on their own: when you push a new commit, customers keep getting the live one until you make the new commit live.

The dialog names the commit customers will get and the one it replaces.

#Roll back

To go back to an earlier commit, make that commit live, using the same steps. Nothing is deleted: the newer commits stay on their branch, and you can make one of them live again later.

#Lock a branch

Locking closes a branch so no more commits land on it, for example when a release is final and you want later work to happen elsewhere. Locking says nothing about what customers get: a locked branch can hold the live commit, and so can a draft one.

  • To lock, select the lock icon on the branch card. If you have a builder session with unsaved changes on that branch, Lock first commits that session's work, then closes the branch.
  • A locked branch shows Locked instead of Draft.
  • If you push to a locked branch, the push creates a new draft branch with your changes. The builder tells you this before you push.
  • To unlock, select the unlock icon on the card. Commits can land on the branch again; what customers get does not change.
Locked and Live are independent.

#Archive a branch

Archive a branch you no longer need to take it out of every list. An archived branch cannot be made live, so archiving is not offered on the branch that holds the live commit.

  1. On the branch card, select the archive icon (Archive branch).
  2. Confirm with Archive.

To bring it back, open Archived at the bottom of the Branches window and select Restore beside it. It returns as a draft branch.

#From the CLI

The same actions exist in the Apollo CLI, for example apollo version live <tag> to make a commit live and apollo version lock <branch> to lock a branch. See the CLI command reference.

Was this article helpful?