来自Azure DevOps的git克隆返回 "No such device or address"错误

标签 git azure

我使用下面的批处理脚本将 git 项目从 Azure DevOps 克隆到本地,其中“1234”是从“Repos > 文件 > 克隆按钮 > 生成 Git 凭证按钮”生成的 PAT

git clone https://<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b180838285f1d5d4c79fd0cbc4c3d49fd2dedc" rel="noreferrer noopener nofollow">[email protected]</a>/test/test_project

一开始就有效。但一段时间后它会返回以下错误。

Cloning into 'test'...
fatal: Verification code expired before contacting the server
bash: /dev/tty: No such device or address
error: failed to execute prompt script (exit code 1)
fatal: could not read Password for 'https://<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4f7e7d7c7b0f2b2a39612e353a3d2a612c2022" rel="noreferrer noopener nofollow">[email protected]</a>/test/test_project/_git/test_project': No such file or directory

有人知道问题出在哪里吗?

最佳答案

这看起来像一个

AADSTS70019 CodeExpired - Verification code expired. Have the user retry the sign-in.

使用 Personal Access Token应该更有效。您可以控制其到期日期。

关于来自Azure DevOps的git克隆返回 "No such device or address"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72255361/

相关文章:

azure - 不支持关键字 : 'authentication' error for azure integrated connection

git - 从 TFS 构建过程推送到 git 存储库

git - 试图将我的 SSH key 添加到 ssh-agent 但得到 'no such file or directory.'

git - 即使存在 .cpanel.yml 文件,cPanel 也不会部署

git-flow 与普通 git 命令

Azure Web App 部署失败,无法读取未定义的属性 'updateStartupCommandAndRuntimeStack'

git - 为什么 'git ls-files' 没有在 Tab 完成时显示?

Azure 网站内容或 Blob 存储 - 哪个更快?

azure - 如何限制什么人/谁可以将数据发送到 Azure Application Insights

Azure错误: Client side authentication flow with Google is not supported