A few days back, when I was working on Visual Studio 2019, my eyes suddenly stopped at the bell icon in the bottom right corner of the application. When I clicked on it, the notification panel slid in. I found that an update for visual studio is available. So, I clicked on it to update my Visual Studio 2019 to the latest version and started working on my project but, when I tried to push/pull the changes from/to the azure Git repo, I was no longer able to do so. I was worried and tried many things like closing down the application and loading back the project, but nothing worked for me.
Whenever I tried to pull the changes I got the error in
the output panel of Visual Studio saying
“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 when I was trying to push or fetch the things I got
the error saying “Git error -
Fatal.”
At last, I thought of checking the Git setting in the visual studio. So I clicked on Tools > Options > Source Control
Here I found that under
Source Control there are Git Global Settings and Git
Repository Settings to
view and configure global-level or repository-level settings.
I
clicked on Git Global Settings and thought of comparing the preferences with
the prescribed ones from the source: Git
settings in Visual Studio | Microsoft Docs
Here
I found four dropdowns were still selected as "Unset" against what is
prescribed by Microsoft Docs.
So, I changed those four dropdowns as per the source to
- Prune remote branches
during fetch - False
- Rebase local branch when pulling - False
- Cryptographic network provider - OpenSSL
- Credential helper - GCM Core