1

Recently I have started getting this error but only if I also have a git-gui window open. The same command works fine if the git-gui window is closed.

I am running git v2.47.0 on Windows 10 inside Windows Terminal. Git credential.helper is set to 'manager'

This used to work fine before, not sure exactly when it started, probably a few weeks ago. Any idea what is going on and how to prevent it?

# git fetch --all
error: failed to execute prompt script (exit code 5)
fatal: could not read Password for 'https://[email protected]': No such file or directory

Here is a screenshot of the commands and responses

enter image description here

0

2 Answers 2

1

Assuming you are using the latest Git for Windows v2.47.0.windows.2 (Oct. 2024), this could be a side effect of a Git GUI bug discussed in this thread.

It involves setting SSH_ASKPASS to c:/Program Files/Git/mingw64/bin/git-askpass.exe, and involves SSH URL, but git-askpass.exe is also used for HTTPS URL.

Sign up to request clarification or add additional context in comments.

1 Comment

Yes, I am using that exact same version. I will look more into the git-askpass
1

UPDATE 2/14/2025: This did work when I tested it, but the day after the issue is back. So still no clue as to what happened, but the following workaround doesn't really work!

For anyone having the same issue, following workaround made it work for me. Not sure why/how, but it works after this.

Set the git configuration variable core.askPass to git-gui--askpass. You can use the following command to do so.

git config core.askPass git-gui--askpass

This will set the config on the current repository. You can also make this config global by passing the --global parameter.

Hope this helps someone.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.