# Notebook Version Control

{% hint style="warning" %}
*<mark style="color:orange;">**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%2FjJCfrTGINxhYb1BWiGSI%2FPull%20and%20Push%20PySpark%20Notebook.mp4?alt=media&token=17b82aea-e314-4103-a347-e8e8274dc318>" %}
***Pushing to VCS & Pulling from VCS functionality***
{% 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/CBwrd2enb13F1Lw0JiUN/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/P2mCiqD1845cpzld8VBu/image.png" alt=""><figcaption><p><em><strong>Push into Version Controlling 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/Q0fThBbL77m59GmF92wm/image.png" alt=""><figcaption><p><em><strong>Notification message to push Notebook version in the VCS</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/MPhuX3Y7N9ZAMLBhDAIn/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/co3UDpOWCAFTI4xmE64p/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/cpS3OAChExn2OL96fh0P/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> 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 %}
