Connect to Azure DevOps using PAT in C#

Here is a code snippet demonstrating how to connect to Azure DevOps using C#.

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:

Getting started with Azure DevOps & Source Control

Summary Azure DevOps has a very robust source control system. It's really easy to adopt and the learning curve isn't too steep either. Below I outline the steps needed to…