Cannot clone git from Azure DevOps using PAT

I have had success using PAT like this;

  1. Copy clone URL for your repository e.g.

    git clone https://<domain>.visualstudio.com/<domain>/_git/<repository>
  2. After you have copied your PAT use as:

    git clone https://<PAT>@<domain>.visualstudio.com/<domain>/_git/<repository>

No Username nor password should be required as the PAT should suffice.

Leave a Comment