Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

So i just updated to a new Visual studio version and I'm no longer able to push/pull from/to my azure git repo (cloning works fine).

The exact error I get is

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'.

and only the pull command shows me this error, all the others are failing with git fatal error. I messed with my Credentials Manager cos i suspected it might be the one causing the problem but no luck..

like image 683
Menyus Avatar asked Oct 13 '22 08:10

Menyus


4 Answers

What fixed the issue for me is going to Tools > Options > Source Control > Git Global Settings, there I changed all 4 dropdowns which were still selected as "Unset":

  • Prune remote branches during fetch - False
  • Rebase local branch when pulling - False
  • Cryptographic network provider - OpenSSL
  • Credential helper - GCM Core

Source: https://learn.microsoft.com/en-us/visualstudio/ide/git-with-visual-studio?view=vs-2019#personalize-your-git-settings

Note: These are the settings my organization requires. You might have to tweak them around according to your exact issue.

like image 596
Valentin Atanasov Avatar answered Oct 27 '22 12:10

Valentin Atanasov


Okey, i just updated git for windows git update-git-for-windows with git bash. Then selected the new non deprecated credential manager when installing and now it works fine.

like image 70
Menyus Avatar answered Oct 27 '22 12:10

Menyus


Check your credentials in Tools > Options > Source Control > Git Global Settings enter image description here

like image 31
Cesar Alvarado Diaz Avatar answered Oct 27 '22 11:10

Cesar Alvarado Diaz


IDE-agnostic solution that worked for me:

  1. Open Command Prompt
  2. Run git config --global credential.useHttpPath true (the --global parameter is optional)

Git-Credential-Manager-for-Windows docs useHttpPath

like image 28
AlvinH Avatar answered Oct 27 '22 11:10

AlvinH