# Export to GIT

{% hint style="info" %}
***Prerequisite**: It is required to set configuration for the DS Lab Migration using the Version Control from the Admin module before migrating a DS Lab script or model.*
{% endhint %}

{% hint style="success" %}
*Check out the walk-through on how to migrate/ export a Notebook script to the GIT Repository.*&#x20;
{% endhint %}

<figure><img src="https://4128708524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FwFBFaZkZcrC0JAagMewj%2FDS%20Lab_Notebook%20migration.gif?alt=media&#x26;token=f66ef2c2-fe09-4aac-b18e-191a976ae607" alt=""><figcaption><p>Migrating a Notebook Script to GIT Repository</p></figcaption></figure>

## Export a DSL Script to GIT

* Navigate to the ***Notebook list***.
* Click the ***Export*** icon for a Notebook.

<figure><img src="https://4128708524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FvSWup8ZyLiuUHRHzgpf8%2Fimage.png?alt=media&#x26;token=ff483ea1-ec0e-4d2e-a768-fef69a0e0de1" alt=""><figcaption></figcaption></figure>

* The ***Export to Pipeline/ GIT*** dialog box options.
* Select the Export to GIT option.
* Provide a ***Commit Message*** in the given space.
* Click the ***Export*** option.

<figure><img src="https://4128708524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FuOrfqKWlk6tYfZWaveU4%2Fimage.png?alt=media&#x26;token=92794b7e-a827-4e81-9e3f-fba3e6ee2716" alt=""><figcaption></figcaption></figure>

* A notification message appears, and the selected Script gets migrated to GIT repository.

<figure><img src="https://4128708524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2F66EulB5dO8eSxOZmxir4%2Fimage.png?alt=media&#x26;token=e51f7fff-c82f-4f3b-9e5a-9aed7d39a274" alt=""><figcaption></figcaption></figure>

## Import a DSL Script from GIT

After exporting a DSL script, you can Sign-in to another user account on different space or server and import the DSL script by using the below-given set of steps.

* Click the ***Admin*** module from the ***Apps*** menu.

&#x20;    ![](https://4128708524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FLItssw4tweboajFXzVGR%2Fimage.png?alt=media\&token=3b0d1a07-9ee0-46e6-bfee-02c4643b153d)

* Select the ***GIT Migration*** option from the admin menu panel.
* Click the ***Import File*** option.

&#x20;     ![](https://4128708524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2Fnbsmts7tAXeTWi0mcdNT%2Fimage.png?alt=media\&token=62d45444-1214-4854-aa17-7b8f15bc32e0)

* The Import Document page opens, click the ***Import*** option.     &#x20;

<figure><img src="https://4128708524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FArl2vt9gHjmOkEVOK35Y%2Fimage.png?alt=media&#x26;token=8e4e3196-4ffd-41b6-b690-b7553aee8ba1" alt=""><figcaption></figcaption></figure>

* The ***Migration- Document Import*** page opens.
* Select ***New VCS*** as Version Control Configuration.
* Select the ***DSLab*** option from the module drop-down menu.
* Select Notebook option from the left side panel.
* All the migrated Notebooks get listed.&#x20;

<figure><img src="https://4128708524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FP9EeHA0XIXOiqlnMHHQR%2Fimage.png?alt=media&#x26;token=8592762e-b3f6-4b59-b6ec-fd40619e8e39" alt=""><figcaption></figcaption></figure>

* Select a Notebook from the displayed list to open the available versions of the that Notebook.

<figure><img src="https://4128708524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FzBuctnWFGWBh2H6I4GBs%2Fimage.png?alt=media&#x26;token=55aa9fbf-6bbb-4717-920e-884280cf8867" alt=""><figcaption></figcaption></figure>

* Select a ***Version*** that you wish to import.
* Click the ***Migrate*** the option.    &#x20;

<figure><img src="https://4128708524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FZL01lOyKl8bbMfns9een%2Fimage.png?alt=media&#x26;token=7c455003-7a9c-4af1-84e0-e3ab63a087fb" alt=""><figcaption></figcaption></figure>

* The Data Connector Details dialog box opens.
* Choose one connector from the Existing Connectors or Create a New Connector.
* &#x20;Click the ***Save*** option.   &#x20;

<figure><img src="https://4128708524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2F5JOlW01SthLKCsaIvGVr%2Fimage.png?alt=media&#x26;token=5a892e90-bc24-4e46-886f-8a90d1879a28" alt=""><figcaption></figcaption></figure>

* A notification message appears informing that the file has been migrated.

<figure><img src="https://4128708524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2F6IqtLbjuGBXDQoCgRm9f%2Fimage.png?alt=media&#x26;token=6602471f-2e9d-45f0-97fc-b8c06f338745" alt=""><figcaption></figcaption></figure>

Note: The user can migrate only the exported scripts (the exported scripts to the Data Pipeline).
