> For the complete documentation index, see [llms.txt](https://docs.bdb.ai/data-science-lab-4/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bdb.ai/data-science-lab-4/project/tabs-for-a-data-science-lab-project/tabs-for-tensorflow-and-pytorch-environment/notebook/notebook-list/notebook-list-actions/notebook-version-control.md).

# Notebook Version Control

Easily maintain multiple versions of a Notebook in GIT Lab.

{% hint style="info" %}
*<mark style="color:green;">**Pre-requisite:**</mark> Make sure that the Version control settings for the DSL plugin are configured by your administrator before you use this functionality.*
{% endhint %}

{% hint style="success" %}
*Check out a walk-through on the **Version Control Functionality** for Notebook.*
{% endhint %}

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBLGYLEkBUnc8nVEBAuEI%2Fuploads%2FdQLxGPAPtQMlMAeHHPlz%2FVersion%20Control%20Notebook.mp4?alt=media&token=4d040026-30ad-49cb-99e9-3e886bda0e64>" %}
***Pushing to and Pulling from VCS functionality for a Notebook***
{% endembed %}

## Pushing a Notebook to the VCS <a href="#pushing-a-notebook-to-the-vcs" id="pushing-a-notebook-to-the-vcs"></a>

* Select a Notebook from the displayed Notebook list.
* Select the Ellipsis icon to open the Actions context menu.
* Click the ***Push into VCS*** option for the Notebook.​

<figure><img src="https://content.gitbook.com/content/1QeOywZjV1cHo55cMW8u/blobs/lnkewPiNCLvc0ldbPMXN/image.png" alt=""><figcaption><p><em><strong>Push to VCS option for Notebook</strong></em></p></figcaption></figure>

* The Push into Version Controlling System dialog box appears.
* Provide a Commit Message.
* Click the ***Push*** option.​

<figure><img src="https://content.gitbook.com/content/1QeOywZjV1cHo55cMW8u/blobs/ds1Y5Z4LhVgGBwK3L4Nn/image.png" alt=""><figcaption><p><em><strong>Push into Version Control System dialog box</strong></em></p></figcaption></figure>

* A notification message appears to inform the success of the action.​ The Notebook version gets pushed to the VCS.

<figure><img src="https://content.gitbook.com/content/1QeOywZjV1cHo55cMW8u/blobs/vr4nZNxhlWUtPnNstoFi/image.png" alt=""><figcaption><p><em><strong>Notification message after the  Push to VCS functionality is performed on a Notebook</strong></em> </p></figcaption></figure>

## Pulling a Notebook from the VCS <a href="#pulling-a-project-from-the-vcs" id="pulling-a-project-from-the-vcs"></a>

* Navigate to the Notebook list given under a Project.
* Click the Ellipsis icon to open the Notebook Actions
* Click the ***Pull from VCS*** option for the Notebook.

<figure><img src="https://content.gitbook.com/content/1QeOywZjV1cHo55cMW8u/blobs/6GWt3I80lIQhivQuPALN/image.png" alt=""><figcaption><p><em><strong>Pull from VCS icon for a Notebook</strong></em></p></figcaption></figure>

* The ***Pull from Version Controlling System*** dialog box opens.
* Select the version that you wish to pull by using the checkbox.
* Click the ***Pull*** option.

<figure><img src="https://content.gitbook.com/content/1QeOywZjV1cHo55cMW8u/blobs/ISJnAGMxEebT2LnmZRKW/image.png" alt=""><figcaption><p><em><strong>Pull from Version Controlling System dialog box for Notebook</strong></em></p></figcaption></figure>

* A notification message appears to inform the success of the action.
* The pulled version of the selected Notebook gets updated in the Notebook list.

<figure><img src="https://content.gitbook.com/content/1QeOywZjV1cHo55cMW8u/blobs/p5HL5r9n6JhnZCJCuaQE/image.png" alt=""><figcaption><p><em><strong>Notification message when a version of the Notebook gets pulled​</strong></em></p></figcaption></figure>

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark>*&#x20;

* The ***Push into VCS*** and ***Pull from VCS*** options are also used while working with a ***Pulled Notebook***. Refer to the ***Pull from Git*** page provided under the ***Import Notebook*** section of the documentation to know it in detail.
* *Refer the* [***Data Science Lab Quick Start Flow***](https://docs.bdb.ai/data-science-lab-4/data-science-lab-quick-start-flow) *page to get an overview of the **Data Science Lab** module in nutshell.*&#x20;
  {% endhint %}
