# Export to GIT

{% hint style="warning" %}
*<mark style="color:orange;">**Prerequisite**</mark><mark style="color:orange;">:</mark> It is required to do required configuration for the DS Lab Migration using the Admin module before migrating a DS Lab script or model.*
{% endhint %}

## Export a DSL Model <a href="#export-a-dsl-model" id="export-a-dsl-model"></a>

{% hint style="success" %}
*Check out the walk-through on how to migrate/ export a model to the GIT Repository.*
{% endhint %}

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBLGYLEkBUnc8nVEBAuEI%2Fuploads%2FEEaQsIkN7f1lLK5Ox8dR%2FExporting%20Model%20to%20GIT.mp4?alt=media&token=528ce0c3-93ff-4c7f-bef3-b7462a211a4a>" %}
***Exporting a DSL Model***
{% endembed %}

* Navigate to the ***Model*** tab.
* Click the ***Export*** icon for a Model.

<figure><img src="https://content.gitbook.com/content/1QeOywZjV1cHo55cMW8u/blobs/PP2zkeHeWXZAJZXecvwu/image.png" alt=""><figcaption><p><em><strong>Export to GIT</strong></em></p></figcaption></figure>

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

&#x20;      ![](https://content.gitbook.com/content/1QeOywZjV1cHo55cMW8u/blobs/oqAQeQYL5tXDEjexAi8g/image.png)&#x20;

* A notification message appears informing that the Script is migrated.

<figure><img src="https://content.gitbook.com/content/1QeOywZjV1cHo55cMW8u/blobs/UHtZK7YNk2x5gSJDMNxN/image.png" alt=""><figcaption></figcaption></figure>

## Import a DSL Model <a href="#import-a-dsl-model" id="import-a-dsl-model"></a>

{% hint style="success" %}
*Check out the given walk-through to understand an import a Migrated DSL Model. inside another user under a different space.*
{% endhint %}

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBLGYLEkBUnc8nVEBAuEI%2Fuploads%2FL81x82CjWTZn6efYziMe%2FImport%20Model%20functionality%20(GIT%20Import).mp4?alt=media&token=39cb606a-e6b9-4970-9603-d8afb649a116>" %}
***Importing the Exported DSL model***
{% endembed %}

* Click the ***Admin*** module from the ***Apps*** menu from the targeted user's account where you exported the Data Science model.

<figure><img src="https://content.gitbook.com/content/1QeOywZjV1cHo55cMW8u/blobs/EeABmg9HibymulollfZU/image.png" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://content.gitbook.com/content/1QeOywZjV1cHo55cMW8u/blobs/TX2PrHliDHlROkl7g5FG/image.png" alt=""><figcaption></figcaption></figure>

* The Import Document page opens, click the ***Import*** option.

<figure><img src="https://content.gitbook.com/content/1QeOywZjV1cHo55cMW8u/blobs/dG0BqSlvJPAVnMYJqeDK/image.png" 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 the ***Model*** option from the left side panel.
* Use ***Search space*** to search for a specific model name.
* All the migrated ***Models*** get listed based on your search.

<figure><img src="https://content.gitbook.com/content/1QeOywZjV1cHo55cMW8u/blobs/dwrTr0ilp6r2dxqRM9XI/image.png" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://content.gitbook.com/content/1QeOywZjV1cHo55cMW8u/blobs/pCFKlITre5EHkTGlOxT2/image.png" alt=""><figcaption></figcaption></figure>

* Select a ***Version*** that you wish to import.
* Click the ***Migrate*** option.

<figure><img src="https://content.gitbook.com/content/1QeOywZjV1cHo55cMW8u/blobs/VSU9BY95VlCRzuyd3Hh1/image.png" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://content.gitbook.com/content/1QeOywZjV1cHo55cMW8u/blobs/786ctR7FjlPFNcWPVft0/image.png" alt=""><figcaption></figcaption></figure>

* The migrated model gets imported inside the Model tab of the targeted user.&#x20;

<figure><img src="https://content.gitbook.com/content/1QeOywZjV1cHo55cMW8u/blobs/1BhqT0rdhHP3NtxyTnSf/image.png" alt=""><figcaption></figcaption></figure>

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

* While migrating the ***Model*** the concerned ***Data Science Project*** also gets migrated to the targeted user's account.
* *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 %}
