Follow

Follow
Disable GUI and Enable Shell Prompt for Git Credentials

Disable GUI and Enable Shell Prompt for Git Credentials

Disable the annoying GUI popup credential window in Git

Islam NEGM's photo
Islam NEGM
Β·Jun 21, 2022Β·

1 min read

Motivation

I was trying to find a solution to the annoying popup message asking for user credentials when Git is dealing with https protocol. It's pretty annoying when working with an SSH connection or even on a X-server based terminal, it's slow as I am accessing remote machines in some cases.

Solution

Basically the solution is core.askPass config field, according to this answer[2] you can use the following command to disable GUI based prompts and instead using Shell prompts.

git config --global core.askPass true

On CentOS

I am using CentOS the update for this answer in Stack Overflow suggesting that the following command will solve the issue, and it did for me!

git config --global core.askPass ""

Let me know what do you think.

References

[1] disable git command openssh popup [2] git bash - Git Windows Disable password prompt UI but get password prompt from shell - Stack Overflow

Β 
Share this