git-credential-manager icon indicating copy to clipboard operation
git-credential-manager copied to clipboard

fatal: refusing to work with credential missing host field

Open wizneeraj opened this issue 6 months ago • 1 comments

Version

2.6.1+786ab03440ddc82e807a97c0e540f5247e44cec6

Operating system

Windows

OS version or distribution

Windows 11 x64

Git hosting provider(s)

Azure DevOps

Other hosting provider

No response

(Azure DevOps only) What format is your remote URL?

https://dev.azure.com/{org}

Can you access the remote repository directly in the browser?

Yes, I can access the repository

Expected behavior

Ability to clone or commit to Azure DevOps Repo.

Actual behavior

I am unable to clone any new repo's. Also, all existing repo's fail to commit to azure devops repo as well. Continuously facing the error - "fatal: refusing to work with credential missing host field". Have tried reinstalling git bash multiple times, but always facing the same issue.

Logs

WSLENV=$WSLENV:GCM_TRACE:GIT_TRACE GCM_TRACE=1 GIT_TRACE=1 git clone https://[email protected]/org-abc/ projectabc/_git/reponame 22:20:52.434561 exec-cmd.c:266 trace: resolved executable dir: C:/Program Files/Git/mingw64/bin 22:20:52.451404 git.c:476 trace: built-in: git clone 'https://[email protected]/org-abc/projectabc/_git/reponame' Cloning into 'reponame'... 22:20:52.497992 run-command.c:674 trace: run_command: git remote-https origin 'https://[email protected]/org-abc/projectabc/_git/reponame' 22:20:52.497992 run-command.c:935 trace: start_command: git remote-https origin 'https://[email protected]/org-abc/projectabc/_git/reponame' 22:20:52.570650 exec-cmd.c:266 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core 22:20:52.577488 git.c:774 trace: exec: git-remote-https origin 'https://[email protected]/org-abc/projectabc/_git/reponame' 22:20:52.577488 run-command.c:674 trace: run_command: git-remote-https origin 'https://[email protected]/org-abc/projectabc/_git/reponame' 22:20:52.577488 run-command.c:935 trace: start_command: git-remote-https origin 'https://[email protected]/org-abc/projectabc/_git/reponame' 22:20:52.644777 exec-cmd.c:266 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core fatal: refusing to work with credential missing host field

wizneeraj avatar Jun 23 '25 21:06 wizneeraj

Hello @wizneeraj, could you please perform git credential-manager diagnose and place the file here in your issue description?

Please also hide the sensitive information from the log file without fully removing lines. This helps us investigate the issue better and faster.

Thanks.

xfabo1 avatar Dec 01 '25 13:12 xfabo1

Hey I am closing this issue due to lack of responsiveness. If this issue persist, feel free to create a new issue.

xfabo1 avatar Dec 12 '25 13:12 xfabo1