Attach a Git Repository from the SageMaker Console - Amazon SageMaker
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Attach a Git Repository from the SageMaker Console

Important

As of November 30, 2023, the previous Amazon SageMaker Studio experience is now named Amazon SageMaker Studio Classic. The following section is specific to using the Studio Classic application. For information about using the updated Studio experience, see Amazon SageMaker Studio.

The following topic shows how to associate a Git repository URL from the Amazon SageMaker console to clone it in your Studio Classic environment. After you associate the Git repository URL, you can clone it by following the steps in Clone a Git Repository in SageMaker Studio Classic.

Prerequisites

Before you can begin this tutorial, you must onboard to Amazon SageMaker domain. For more information, see Amazon SageMaker domain overview.

Attach the Git repo to a domain or user profile

Git repo URLs associated at the domain level are inherited by all users. However, Git repo URL that are associated at the user profile level are scoped to a specific user.

The following sections show how to attach a Git repo URL to a domain and user profile.

Attach to a domain

To attach a Git repo URL to an existing domain
  1. Open the Amazon SageMaker console at https://console.amazonaws.cn/sagemaker/.

  2. On the left navigation pane, choose Admin configurations.

  3. Under Admin configurations, choose domains.

  4. Select the domain to attach the Git repo to.

  5. On the domain details page, choose the Environment tab.

  6. On the Suggested code repositories for the domain tab, choose Attach.

  7. Under Source, enter the Git repository URL.

  8. Select Attach to domain.

Attach to a user profile

The following shows how to attach a Git repository URL to an existing user profile.

To attach a Git repository URL to a user profile
  1. Open the Amazon SageMaker console at https://console.amazonaws.cn/sagemaker/.

  2. On the left navigation pane, choose Admin configurations.

  3. Under Admin configurations, choose domains.

  4. Select the domain that includes the user profile to attach the Git repo to.

  5. On the domain details page, choose the User profiles tab.

  6. Select the user profile to attach the Git repo URL to.

  7. On the User details page, choose Edit.

  8. On the Studio settings page, choose Attach from the Suggested code repositories for the user section.

  9. Under Source, enter the Git repository URL.

  10. Choose Attach to user.