7.3 Cloning a Git Repository

NOTE:Before cloning a Git repository, make sure that the ./PDT/StagingEnvironments is empty.

Perform the following actions to clone a Git repository:

  1. Click Git.

  2. Click Clone a Repository.

  3. PDT needs user credentials to access a remote server where you maintain your Git repository. To add your credentials:

    1. Click in Add Git Credentials window.

    2. Based on the type of connection you want to use, provide the following details:

      • For HTTPS: Do one of the following:

        • Select HTTPS in the Connection Type drop-down, enter your user name in the User Name / OAuth Token field and password in the Password / Token field; OR

        • Select HTTPS in the Connection Type drop-down, enter the access token in the User Name / OAuth Token field

      • For SSH: Select SSH in the Connection Type drop-down and provide the private key in the Password / Token field. User Name / OAuth Token is not required.

    3. Click Save.

    4. Specify the Git repository URL you wish to clone in the Repository URL field.

    5. Click Save.