通过Visual Studio 2017克隆azure devops git存储库会引发错误

问题描述 投票:0回答:1

我已经在Azure DevOps中创建了一个组织。在这个组织的领导下,我在Azure DevOps中使用私有Git存储库创建了一个项目。现在,当我尝试使用Visual Studio 2017克隆此存储库时,我不断收到以下提到的错误。

**Git failed with a fatal error.
unable to access 'https://dev.azure.com/organizationame/projectname/_git/projectname/': The requested URL returned error: 403**
git azure github azure-devops visual-studio-2017
1个回答
0
投票

我通过以下步骤在Visual Studio中对此进行了测试,一切正常。

1。在团队资源管理器中连接到项目

enter image description here

2。在Connect to a Project页面上,选择要克隆的存储库。

enter image description here

3。如果弹出需要凭据的窗口,请输入您的PAT并确保您的PAT在Read, write & manage部分中具有Code权限。

enter image description here

4。存储库已成功克隆。

enter image description here

如果您已按照步骤操作,但失败了,请指出您在哪一步发生了错误。

© www.soinside.com 2019 - 2024. All rights reserved.