Fatal: Could not read password for ‘https://[email protected]’: terminal prompts disabled

As you mentioned you need to use PAT but in this way:

git push https://{PAT}@dev.azure.com/{organization}/{project}/_git/{repo-name}

Another solution is to “Allow scripts to access the OAuth token” in the job options:

photo

In the git push use the System.AccessToken:

git push https://$env:[email protected]/......

And give push permissions to the build user (in the repo settings):

enter image description here

Leave a Comment