Git Windows禁用密码提示用户界面,但从外壳获取密码提示 [英] Git Windows Disable password prompt UI but get password prompt from shell

查看:82
本文介绍了Git Windows禁用密码提示用户界面,但从外壳获取密码提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows的git bash中,用户名和/或密码在单独的UI弹出提示符(如下所示)中询问.

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

击中取消时,您会收到以下基于shell的提示,可以在其中输入相同的用户名.

On Hitting Cancel you get the below shell based prompt, where the same username can be input.

有没有一种方法可以禁用这些提示? 我仍然想输入我的用户名和密码,但是我想通过基于shell的提示符而不是基于UI的提示来输入.

Is there a way I can disable these prompts? I still do want to enter my username and password however instead of the UI based prompt, i want to enter it through the shell based prompt.

使用此建议无济于事. 如何撤消git config --system核心. askpass git-gui--askpass

Using suggestions from this does not help. How to undo git config --system core.askpass git-gui--askpass

推荐答案

尝试全局(在配置文件中)清空变量core.askPass

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

$ git config --global core.askPass ""

或使用-c开关仅针对一个命令覆盖它

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

$ git -c core.askPass="" clone <https_url>

请参阅: https://git-scm.com/docs/gitcredentials

注意:使用git config --global --unset core.askPass取消设置core.askPass并没有帮助.需要像上面一样将其设置为空字符串.

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.

这篇关于Git Windows禁用密码提示用户界面,但从外壳获取密码提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆