Fatal: could not read Password for terminal prompts disabled
I was recently trying to write back remote changes carried out by a build agent as part of a CI-CD task. I came across the following error:
fatal: could not read Password for ‘https://firstname.lastname@example.org’: terminal prompts disabled
The fix to this is straight forward. There are two things that need to be done.
- Enable ‘Allow scripts to access the OAuth token’
2. Ensure that both the ‘Project Collection Build Service‘ and “Project Collection Build Service Accounts” are allowed to Contribute, Contribute to pull request, Create branch, Create tag.
The build should succeed and the changes should be written back to your repository.