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


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:

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