'git clone from Azure DevOps returns "No such device or address" error
I use batch script below to clone the git project from Azure DevOps to local, where "1234" is the PAT generated from "Repos > Files > Clone button > Generate Git Credentials button"
git clone https://[email protected]/test/test_project
It works at the beginning. But after sometime it returns error below.
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://[email protected]/test/test_project/_git/test_project': No such file or directory
Would anyone know what is the problem?
Solution 1:[1]
That looks like a
AADSTS70019CodeExpired - Verification code expired. Have the user retry the sign-in.
Using a Personal Access Token should be more effective. You can control its expiration date.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | VonC |
