Cannot determine the organization name for this ‘dev.azure.com’ remote url

Whilst trying to set up Visual Studio to use a git repo hosted on Azure DevOps, we encountered this error.

Cannot determine the organization name for this 'dev.azure.com' remote url. ensure the credential.usehttppath configuration value is set, or set the organization name as the user in the remote url '{org}@dev.azure.com'.

Luckily the comments on this StackOverflow post have already figured it out so we don’t have to.

The issue only seems to affect some, I haven’t seen it but one of my fellow developers did. This might be related to version of Visual Studio.

Either way, the answer is to go to Tools > Options > Source Control > Git Global Settings and choose GCM Core as the value for Credential helper. The default is Unset.

The other settings mentioned in the accepted answer aren’t necessary, as other commenters mention.

Leave a comment

Your email address will not be published. Required fields are marked *