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

# Export to GIT

The user can migrate a Model across space or server using the Export to GIT feature.

{% hint style="info" %}
***Prerequisite**: 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>

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

<figure><img src="https://859511478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FOhfgn5NP5ri1k6Zq8Cz9%2Fimage.png?alt=media&#x26;token=9e459d1e-08a1-49fb-b89b-9a801f2be15e" alt=""><figcaption></figcaption></figure>

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

​![](https://859511478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FDyS4H96lEGEFq5vlYs3c%2Fimage.png?alt=media\&token=d028a855-60bb-42c2-91a9-8f0ae70f525c)​

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

<figure><img src="https://859511478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FniR6Wh9zdGZu40NpfqsO%2Fimage.png?alt=media&#x26;token=5a3e0364-0a3d-43b7-b1a2-e7825d98bc62" alt=""><figcaption></figcaption></figure>

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

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

![](https://859511478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FLpeBxjvUDFHWd8YPBOzo%2Fimage.png?alt=media\&token=07578579-b3fa-4d9d-9da1-9d674e0eabb4)​

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

![](https://859511478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FtRvTWMVNNrio2j14QG6G%2Fimage.png?alt=media\&token=15c2ecdc-0e7c-4d30-a998-ced42764ee1d)​

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

![](https://859511478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FIMfm2rxutDWl9QcMxZWc%2Fimage.png?alt=media\&token=2cd016cc-a8fd-42e7-901b-fe006d12716d)

* 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.
* All the migrated ***Models*** get listed.

<figure><img src="https://859511478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FVAjkAwSxMHda5GOmDvd7%2Fimage.png?alt=media&#x26;token=73e664f8-1343-498c-9a3d-7d9ccd9f5c97" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://859511478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FtzSTe2jtlgJVwc3Q9Kf7%2Fimage.png?alt=media&#x26;token=a39198b2-1b16-4569-9979-eded1f8ef7b6" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://859511478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FU2QcqXhM7Ox20YgIoj4w%2Fimage.png?alt=media&#x26;token=6cb29a4e-98ef-4a7b-8c84-140111be00f4" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3380046084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2o93pDKCv7WARnWqh9pf%2Fuploads%2FXGItyVhctLejfY7QJUYc%2Fimage.png?alt=media&amp;token=cae6ba3c-defd-4601-a1d8-460ada7feda8" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark> Refer the **Data Science Lab Quick Start Flow** page to get an overview of the **Data Science Lab** module in nutshell.* [***Click here***](/data-science-lab-2/data-science-lab-quick-start-flow.md) *to get redirected to the quick start flow page.*
{% endhint %}
