Closed modestotech closed 6 years ago
I was having the same problem. Update `~/.gitconfig and add the lines below to get prompt.
[credential "dev.azure.com"]
authority = MSA
Unfortunately, I'm getting the error below which seems to point that an intermediate fix is to configure git-credential-manager to point to the correct authentication API and wait for a new version of git-credential-manager
Fatal: java.lang.Error encountered. Details:
java.io.FileNotFoundException: https://dev.azure.com/_apis/connectiondata
fatal: credential helper '!/Library/Java/JavaVirtualMachines/jdk1.8.0_192.jdk/Contents/Home/jre/bin/java -Ddebug=false -Djava.net.useSystemProxies=true -jar /usr/local/Cellar/git-credential-manager/2.0.4/libexec/git-credential-manager-2.0.4.jar' told us to quit
@modestotech got the following workaround to work.
Change the url
git clone https://MY_USER@dev.azure.com/MY_USER/PROJECT/_git/REPOSITORY
to
git clone https://MY_USER@MY_USER.visualstudio.com/PROJECT/_git/REPOSITORY
Duplicate of #90
Duplicate of #90
@modestotech got the following workaround to work.
Change the url
git clone https://MY_USER@dev.azure.com/MY_USER/PROJECT/_git/REPOSITORY
to
git clone https://MY_USER@MY_USER.visualstudio.com/PROJECT/_git/REPOSITORY
This worked fine for me by changing the url to use visual studio.com. I also had to add the [credential "dev.azure.com"] authority = MSA
lines for the oAuth authentication popup page to appear.
I try to clone a repository in the MacOS terminal with the following command
git clone https://Company@dev.azure.com/Company/StudioAI/_git/StudioAI
No popup is shown, but I'm requested for a password.
Cloning into 'StudioAI'... Password for 'https://Capgemini-Malmo-Studio@dev.azure.com/':
I've followed the guide here.
git config --global --list
gives last line:credential.helper=!/Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home/bin/java -Ddebug=false -Djava.net.useSystemProxies=true -jar /usr/local/Cellar/git-credential-manager/2.0.4/libexec/git-credential-manager-2.0.4.jar
I've excluded osxkeychain from the git global config, but it should either way have been ignored, to my understanding.
Setup: MacOS Mojave 10.14 (18A391) git version 2.18.0 java 10.0.1 2018-04-17