Which version of GCM are you using?
All versions
Which Git host provider are you trying to connect to?
Can you access the remote repository directly in the browser using the remote URL?
[Azure DevOps only] What format is your remote URL?
[Azure DevOps only] If the account picker shows more than one identity as you authenticate, check that you selected the same one that has access on the web.
Expected behavior
I can specify git configuration overrides using the exact url of my host server and have them picked up, e.g.
For my development Bitbucket server it runs at http://localhost:7990/bitbucket. I want to shortcut the auto-discovery process and tell GCM this URL refers to a Bitbucket instance, so I try:
❯ git config --global credential.http://localhost:7990/bitbucket.provider bitbucket
I would expect this stop the auto-detect process, but it doesn't
Actual behavior
In order to get the desired result I have to use:
❯ git config --global credential.http://localhost/bitbucket.provider bitbucket
This is because GitCredentialManager.UriExtensions.GetGitConfigurationScopes() ignores the port number.
To add context for a Git URL like:
> git clone http://localhost:7990/bitbucket/scm/project_1/rep_1.git
Git will pass the following to GCM
protocol=http
host=localhost:7990
But the port is ignored in Settings
Further context Git itself correctly matches the following:
> git config --global credential.http://localhost:7990/bitbucket.usehttppath true
Logs
N/A
Which version of GCM are you using?
All versions
Which Git host provider are you trying to connect to?
Can you access the remote repository directly in the browser using the remote URL?
[Azure DevOps only] What format is your remote URL?
{org}@dev.azure.com/{org}/...{org}.visualstudio.com/...[Azure DevOps only] If the account picker shows more than one identity as you authenticate, check that you selected the same one that has access on the web.
Expected behavior
I can specify git configuration overrides using the exact url of my host server and have them picked up, e.g.
For my development Bitbucket server it runs at http://localhost:7990/bitbucket. I want to shortcut the auto-discovery process and tell GCM this URL refers to a Bitbucket instance, so I try:
I would expect this stop the auto-detect process, but it doesn't
Actual behavior
In order to get the desired result I have to use:
This is because
GitCredentialManager.UriExtensions.GetGitConfigurationScopes()ignores the port number.To add context for a Git URL like:
Git will pass the following to GCM
But the port is ignored in
SettingsFurther context Git itself correctly matches the following:
Logs
N/A