Is it possible to disable the Windows git credential helper?

I’m running into an issue on Windows where I am attempting to clone a repository I don’t have access to over HTTPS. This is part of a test suite and it should fail to clone.

On Windows it appears git launches a GUI window prompting for a username and password. This causes the git invocation to hang after outputting Logon failed, **use ctrl** + **c to cancel basic credential prompt**.:

Cloning into '\\?\D:\a\git-workspace\git-workspace\workspace-test-dir\gitlab/tom6/backend-coding-challenge'...
Logon failed, use ctrl+c to cancel basic credential prompt.
bash: /dev/tty: No such device or address

Link: https://github.com/orf/git-workspace/runs/249670624#step:7:14

I think that this should be disabled on the build runners, as there is no way to interact with the GUI prompt, and I cannot seem to disable it.

Exactly the same problem. Is there a workaround?

you can get rid of the GUI popup with this:

git credential-manager uninstall --force

but you still run into the weird error message about bash: /dev/tty

reference to that bug here (which they are currently ignoring because “the GUI solves this” :confused:

https://github.com/git-for-windows/git/issues/327

Removing my answer because now it does not work anymore, not sure why…