简体   繁体   中英

cloning azure devops git repository through visual studio 2017 throws error

I have created an organization in Azure DevOps. Under this organization, I created a project with private Git Repository in Azure DevOps. Now When I try to clone this repository using Visual Studio 2017 I keep getting below mentioned error.

**Git failed with a fatal error.
unable to access 'https://dev.azure.com/organizationame/projectname/_git/projectname/': The requested URL returned error: 403**

I tested this in visual studio by the following steps ,every thing works well.

1.Connect to a project in Team Explorer

在此处输入图片说明

2.On the Connect to a Project page, select the repo you want to clone.

在此处输入图片说明

3.If a window pops up that requires credentials, enter your PAT and make sure your PAT has Read, write & manage permission in section Code .

在此处输入图片说明

4.The repository was cloned successfully.

在此处输入图片说明

If you have followed the steps but failed, please indicate at which step you got the error.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM