我使用下面的批处理脚本将 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/