# Notebook Version Control

{% 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" %}
*Watch 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://2587201349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBLGYLEkBUnc8nVEBAuEI%2Fuploads%2F1IErZ6xfseybrwjmooCv%2Fimage.png?alt=media&#x26;token=1e5a1a6b-5cbd-4605-97db-00d8d1c77539" 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://2587201349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBLGYLEkBUnc8nVEBAuEI%2Fuploads%2FUVdMsbFmzflMILD0n7M1%2Fimage.png?alt=media&#x26;token=e4818921-442a-4c60-a003-94f67e8fb8f9" 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://2587201349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBLGYLEkBUnc8nVEBAuEI%2Fuploads%2FBUN3b853ENt8ppubC0Vp%2Fimage.png?alt=media&#x26;token=e391133e-1b72-4bf4-973a-0664d5a80c45" 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://2587201349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBLGYLEkBUnc8nVEBAuEI%2Fuploads%2FyiNYbdpUcL3DNRUPzqDV%2Fimage.png?alt=media&#x26;token=53bc5b99-5e60-453c-9f61-19b461a616df" 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://2587201349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBLGYLEkBUnc8nVEBAuEI%2Fuploads%2FNa3qQGvrabK48IPiQsMJ%2Fimage.png?alt=media&#x26;token=4bc2eef9-8f3f-4fe7-b9d6-f69ee536509e" 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://2587201349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBLGYLEkBUnc8nVEBAuEI%2Fuploads%2FxXrcPzHbvrzmLExZQrgM%2Fimage.png?alt=media&#x26;token=8e474635-b922-4deb-8173-effb2c7448d8" 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-3/data-science-lab-quick-start-flow)*page to get an overview of the **Data Science Lab** module in nutshell.*&#x20;
  {% endhint %}
