NOTE:Before cloning a Git repository, make sure that the ./PDT/StagingEnvironments is empty.
Perform the following actions to clone a Git repository:
Click Git.
Click Clone a Repository.
PDT needs user credentials to access a remote server where you maintain your Git repository. To add your credentials:
Click
in Add Git Credentials window.
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.
Click Save.
Specify the Git repository URL you wish to clone in the Repository URL field.
Click Save.