In Visual Studio 2019, we have been using the GitHub extension successfully since before release. Now, all of the sudden, when we push, pull, or sync, we receive the follow
We ran into this exact issue after upgrading Git to version 2.23.0.windows.1 on our build agents.
The fix that worked for us was to change the owner of C:\ProgramData/Git/config to Administrators. Note that this is different to the Administrator user!
To do this, right-click on C:\ProgramData/Git/config and select Properties then the Security tab.
And click Advanced...
Use the Change link to set the owner to Administrators.