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

后端 未结 5 831
深忆病人
深忆病人 2021-01-31 09:50

In git bash for windows, the username and/or password is asked in a separate UI popup prompt like below.

On Hitting Cancel you get the below shell based prompt

5条回答
  •  忘了有多久
    2021-01-31 10:12

    Try to blank the variable core.askPass globally (in your config-file)

    $ git config --global core.askPass ""
    

    or use the -c switch to override it just for one command

    $ git -c core.askPass="" clone 
    

    see: https://git-scm.com/docs/gitcredentials

    Note: un-setting the core.askPass by using git config --global --unset core.askPass doesn't help. It needs to be set to an empty string like above.

提交回复
热议问题