Is there a way to prevent git from opening a password prompt box on Windows?

Delgan

While pushing on a remote repository using git bash, my password is required and asked. This is not a problem.

The issue is that I was used to just type my password into the git console, but then I switched from Linux to Windows and my password is asked into a prompt box instead of the console.

Prompt box for password

I find it much less convenient: I have to wait for one second that it appears and sometimes I lose the focus.

What is strange is that if I close the dialog box, then the password is asked from within the git console. This is what I am looking for.

What I am looking for

Do you know how could I prevent the box to be prompted and just let me type my password into the console, please? Is there some git option I should modify?

Delgan

This seems to be related with the core.askPass option of git-config.

The documentation says:

core.askPass
Some commands (e.g. svn and http interfaces) that interactively ask for a password can be told to use an external program given via the value of this variable. Can be overridden by the GIT_ASKPASS environment variable. If not set, fall back to the value of the SSH_ASKPASS environment variable or, failing that, a simple password prompt. The external program shall be given a suitable prompt as command-line argument and write the password on its STDOUT.


My default configuration contains nothing about this option, so I guess it fall back to the "simple password prompt".

To override this behavior, I just had to set the option to an empty string:

git config --global core.askPass ''

Then, the password is asked from the console without prompting anything.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Prevent git from popping up gnome password box

From Dev

Git Windows Disable password prompt UI but get password prompt from shell

From Dev

Windows command line GIT password prompt

From Dev

Prevent exe from opening a new command prompt window

From Dev

How to prevent a dialog box from opening in Google Chrome?

From Dev

Prevent Chrome from prompting to save password from input box?

From Dev

Opening Microsoft Visual Studio Code from command prompt Windows

From Dev

Opening Folder Options window in Windows from the command prompt

From Dev

Prevent Windows Key from Opening Start Menu in Windows 7

From Dev

How to prevent Windows Explorer from opening multiple windows for the same folder

From Dev

Is there a way to prevent the download page from opening in R Shiny?

From Dev

Is there a way to prevent the download page from opening in R Shiny?

From Dev

How do I prevent 18 screensaver windows from opening?

From Dev

How do I prevent 18 screensaver windows from opening?

From Dev

Prevent VSTO Office Customisation installer prompt from appearing when Opening a document

From Dev

How to set Windows not to prompt for password on resume from sleep

From Dev

In Windows 10 How To Keep Password Prompt From Appearing On Sleep?

From Dev

A way to prevent Windows Update from restarting the computer?

From Dev

Git opening Sublime in Windows

From Dev

Git opening Sublime in Windows

From Dev

Windows 10 - Is there a way of booting to the command prompt from power-up?

From Dev

Is there a way to run MySQL queries from Windows Powershell or Command Prompt?

From Dev

Prevent Revit window from opening

From Dev

Prevent MATLAB from opening pool

From Dev

Prevent unwanted buffers from opening

From Dev

Prevent mpv from opening maximised

From Dev

Accessing a remote Windows "Git Bash" prompt from a Linux machine?

From Dev

Command prompt opening differently in windows 7

From Dev

Opening Shortcuts through Command Prompt Windows

Related Related

  1. 1

    Prevent git from popping up gnome password box

  2. 2

    Git Windows Disable password prompt UI but get password prompt from shell

  3. 3

    Windows command line GIT password prompt

  4. 4

    Prevent exe from opening a new command prompt window

  5. 5

    How to prevent a dialog box from opening in Google Chrome?

  6. 6

    Prevent Chrome from prompting to save password from input box?

  7. 7

    Opening Microsoft Visual Studio Code from command prompt Windows

  8. 8

    Opening Folder Options window in Windows from the command prompt

  9. 9

    Prevent Windows Key from Opening Start Menu in Windows 7

  10. 10

    How to prevent Windows Explorer from opening multiple windows for the same folder

  11. 11

    Is there a way to prevent the download page from opening in R Shiny?

  12. 12

    Is there a way to prevent the download page from opening in R Shiny?

  13. 13

    How do I prevent 18 screensaver windows from opening?

  14. 14

    How do I prevent 18 screensaver windows from opening?

  15. 15

    Prevent VSTO Office Customisation installer prompt from appearing when Opening a document

  16. 16

    How to set Windows not to prompt for password on resume from sleep

  17. 17

    In Windows 10 How To Keep Password Prompt From Appearing On Sleep?

  18. 18

    A way to prevent Windows Update from restarting the computer?

  19. 19

    Git opening Sublime in Windows

  20. 20

    Git opening Sublime in Windows

  21. 21

    Windows 10 - Is there a way of booting to the command prompt from power-up?

  22. 22

    Is there a way to run MySQL queries from Windows Powershell or Command Prompt?

  23. 23

    Prevent Revit window from opening

  24. 24

    Prevent MATLAB from opening pool

  25. 25

    Prevent unwanted buffers from opening

  26. 26

    Prevent mpv from opening maximised

  27. 27

    Accessing a remote Windows "Git Bash" prompt from a Linux machine?

  28. 28

    Command prompt opening differently in windows 7

  29. 29

    Opening Shortcuts through Command Prompt Windows

HotTag

Archive