Fix Cannot determine the organization name for this 'dev.azure.com' remote URL Issue Visual Studio 2019
Recently I got this error in Visual studio 2019 after an update.I am able to connect to the remote repository and clone but couldn't perform Fetch,Pull and Push. Restarting visual studio also wont give a fix for this. But finally managed to fix this by modifying some settings in the git plugin.
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'.
Fix :
- Go to Tools > Options > Source control > Git Global Settings
- Then modify the settings as shown as below :
Reason For This Error :
After the update,the Git plugin for visual studio also updated. Previous version of the Git plugin doesn't require these values to be set. But new version expect values for these settings.
Thanks for sharing your wisdom! Saved me a headache
ReplyDelete