Skip to content

fatal: refusing to work with credential missing host field #1978

@wizneeraj

Description

@wizneeraj

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    auth-issueAn issue authenticating to a host

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions