【发布时间】:2018-09-13 09:01:56
【问题描述】:
有时
git clone https://bitbucket.org/private/repo
导致错误:
克隆到'repo'...
错误:提示脚本执行失败(退出代码1)
致命:无法读取“https://bitbucket.org”的用户名:参数无效
而且有时会触发用户名输入提示。
即使指定了用户名,有时
git clone https://username:bitbucket.org/private/repo
导致错误:
克隆到'repo'...
错误:提示脚本执行失败(退出代码1)
致命:无法读取“https://username@bitbucket.org”的密码:参数无效
而且有时会触发密码输入提示。
git clone https://username:password@bitbucket.org/private/repo
每次都有效,但我试图避免以可读形式提供密码。
似乎 Git 有某种会话阻止它在到期前显示提示,但我没有确凿的证据。
Git 中是否存在影响这些提示的会话,如何清除它们?
如何让这个提示每次都显示?
git clone https://bitbucket.org/private/repo
Cloning into 'test'...
Username for 'https://bitbucket.org': username
Password for 'https://username@bitbucket.org':
我正在使用适用于 Windows 2.13 的 Git。我相信这个问题不是特定于当前存储库(Bitbucket),它也发生在其他存储库中。
有几个问题涉及这些错误,但答案不适用于这种情况。
【问题讨论】:
标签: git git-clone git-for-windows