> For the complete documentation index, see [llms.txt](https://docs.bdb.ai/data-science-lab-6/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-6/tabs-for-a-dsl-project/model/export-to-git-model-migration.md).

# Export to GIT/ Model Migration

This page explains Model migration functionality. You can find steps to Export and Import a model to and from Git repository explained on this page.

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

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

The user can use the Migrate Model icon to export the selected model to the GIT repository.

{% hint style="success" %}
*Check out the illustration on Export to Git functionality.*
{% endhint %}

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz33KQNYQvBTgQKJBgwTz%2Fuploads%2FYVnNNoNFHElPCsShBc24%2FExporting%20a%20model%20to%20Pipeline.mp4?alt=media&token=fb408720-d43e-4007-b4ff-6ab0de3186b6>" %}

* Navigate to the ***Models*** tab.
* Select a model from the displayed list
* Click the ***Model Migration*** icon for a Model.

<figure><img src="https://content.gitbook.com/content/28ipFzCz8EMtVtHrBFLx/blobs/aoj3pgIHFIRixzAmHLu4/image.png" alt=""><figcaption><p><em><strong>The Model Migration icon/ Export to Git icon</strong></em></p></figcaption></figure>

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

&#x20;      ![](https://content.gitbook.com/content/28ipFzCz8EMtVtHrBFLx/blobs/3Srk0Rw4qvdGqDarP3pB/image.png)&#x20;

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

<figure><img src="https://content.gitbook.com/content/28ipFzCz8EMtVtHrBFLx/blobs/zrApzoKHgHselRflg6bo/image.png" alt=""><figcaption><p><em><strong>Notification message after exporting a model</strong></em></p></figcaption></figure>

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

{% hint style="success" %}
*Check out the given walk-through to understand the import of 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%2Fz33KQNYQvBTgQKJBgwTz%2Fuploads%2FZjysJmpNIf7FdtcIb3LF%2FImporting%20a%20DSL%20Model%20(Migrated%20Model).mp4?alt=media&token=a7ce306a-b43e-45bd-bdf4-964ce289fe32>" %}
***Importing a migrated DSL Model***
{% endembed %}

Choose a different user or another space for the same user to import the exported model. In this case, the selected space is different from the space from where the model is exported.

* Select a different tenant to sign in to the Platform.

<figure><img src="https://content.gitbook.com/content/28ipFzCz8EMtVtHrBFLx/blobs/Upv7qwn4z9c4kjqMMesA/image.png" alt=""><figcaption></figcaption></figure>

* Choose a different space while signing into the platform.&#x20;

<figure><img src="https://content.gitbook.com/content/28ipFzCz8EMtVtHrBFLx/blobs/zFcD8eRCOFV6npz0MWuO/image.png" alt=""><figcaption></figcaption></figure>

* Navigate to the ***Admin*** module.
* Select the ***GIT Migration*** option from the admin menu panel.

<figure><img src="https://content.gitbook.com/content/28ipFzCz8EMtVtHrBFLx/blobs/9pRfzRZqtH6W3RSdrhiD/image.png" alt=""><figcaption></figcaption></figure>

* Click the ***Import File*** option.​

<figure><img src="https://content.gitbook.com/content/28ipFzCz8EMtVtHrBFLx/blobs/IYQMyPuAjZmavZWQTdvv/image.png" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://content.gitbook.com/content/28ipFzCz8EMtVtHrBFLx/blobs/wUB1dMyqWRX2UBNwXE9u/image.png" alt=""><figcaption></figcaption></figure>

* The ***Migration- Document Import*** page opens. By default, the ***New VCS*** as Version Control Configuration will be selected .
* Select the ***DSLab*** option from the module drop-down menu.
* Select the ***Models*** option from the left side panel.

<figure><img src="https://content.gitbook.com/content/28ipFzCz8EMtVtHrBFLx/blobs/4yg2fQrJ07veWvT7jjDH/image.png" alt=""><figcaption></figcaption></figure>

* 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/28ipFzCz8EMtVtHrBFLx/blobs/JqIpz3SXPzEpTnAp94y6/image.png" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://content.gitbook.com/content/28ipFzCz8EMtVtHrBFLx/blobs/uykp8jmhsKh9JbroK9W7/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/28ipFzCz8EMtVtHrBFLx/blobs/wL7y1r2RCpHmhP8qbicm/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/28ipFzCz8EMtVtHrBFLx/blobs/PgWZlTwqZCZRUe3KdGZy/image.png" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://content.gitbook.com/content/28ipFzCz8EMtVtHrBFLx/blobs/XsUjNfaFAQG5Hd6SaWwZ/image.png" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark>* While migrating the ***Model*** the concerned ***Data Science Project*** also gets migrated to the targeted user's account.
{% endhint %}
