Count Docs
Version control
Ensuring you can always review your previous work.

What is version control?

Every notebook can have multiple versions, which are snapshots of the notebook at a point in time. Versions cannot be edited or deleted, so are very useful in understanding the history of a notebook. You can create a version manually, and versions are also automatically created as you edit a notebook.
When you create a notebook, it begins in unpublished mode. This is the only way to edit notebooks.
When you want to "lock" the notebook, you will need to publish the notebook to the project. When publishing:
  • A new version of the notebook is saved.
  • The notebook can no longer be edited.

Editing a Published notebook

To make edits to a published notebook, you can either:
  • Unpublish the notebook
  • Fork the notebook (which creates an unpublished copy of the notebook)


To make quick edits to a notebook you can unpublish it. Then to lock the notebook again, you can publish it. This is not a forked version, so the chances are live to anyone viewing or editing the notebook.
Whenever you re-publish the notebook, a new version is automatically saved.


This creates a new copy of the notebook but in unpublished mode, which can be edited freely without affecting the original version of the notebook.

Publish vs merge

Once you are done making edits to a forked notebook you will have the option to merge or publish your new draft.
Merge or Publish options from Unpublished notebook
  • Merging will append your changes to the parent notebook that was forked from. Like publishing, these changes will be saved in a new version of the parent notebook.
  • Publishing will create a brand new notebook chain with its own version history, unrelated to the original notebook.

Viewing versions

The version history of a notebook can be viewed if you are an editor or above of the parent project. To access it, first click 'View code', then access it from the Document tab:
Access version history
The version history bar displays all versions of the notebook, and highlights the one you are currently viewing.
  • If the notebook is in draft mode, you can manually save a new version by clicking the plus icon.
  • If the notebook is published, the only way to add new versions is by forking and merging.
  • Any version can be restored by clicking the menu icon in each version.
  • When publishing and merging, all versions of the draft notebook will be appended to the parent notebook.
  • All versions have a unique URL - you can copy it from the address bar while viewing a version, or copy it to the clipboard by selecting the 'Copy link' option.


To demonstrate the concepts above, the diagram below illustrates what happens under the hood when editing, publishing, forking, and merging notebooks.