Cloning with GitLab

In addition to being able to work with your projects on the IDE, you can also clone their repositories locally on your own machine with GitLab.

Once you set up your Snowflake DW or Conversion Project, click the "OPEN REPOSITORY" button. It will redirect to your project's GitLab repository. From there, you can choose to clone your repository either with SSH or HTTPS.

With SSH

You can follow the instructions in the GitLab documentation to Clone with SSH normally. Other actions such as pushing can be done with your SSH as well.

With HTTPS

To clone with HTTPS, you must use a GitLab Personal Access Token. Without it, your cloning attempt will result in a failed authentication error.

  1. First, you need to create a personal access token for your GitLab account. Be sure to remember it or store it somewhere safe.

  2. Go to your project's repository page and select Clone. Then, copy the URL for Clone with HTTPS.

  3. Open a terminal on the directory where you want to clone the project, and run the following command, replacing the URL with the one that you copied from your repository: git clone https://gitlab.com/sample-user/sample-https.git

  4. GitLab will prompt you for your username and password. You can input your username normally, but you must use your personal access token instead of your account's password, else your authentication will fail.

  5. Your project will be cloned to your machine. Be sure to keep using your personal access token every time GitLab asks for your credentials.

Last updated