为什么Git没有提示我输入密码?

问题描述 投票:1回答:2

我正在尝试设置一个Git / Bitbucket帐户,以便我可以控制我的一个项目。我创建了一个Bitbucket帐户,并为自己创建了一个存储库。

我在Atlassian文档中的Clone Your Git Repo and Add Source Files的第1部分第8部分。

我一直收到这个错误:

 fatal: could not read Password for 'https://[email protected]': No such file or directory

所以我运行了命令

git config --global core.askpass

然后再次尝试,它仍然没有提示我输入密码。我在这里错过了什么? (注意:我使用的是实际存储库中的克隆链接,而不是此处显示的链接。:))

git bitbucket
2个回答
3
投票

而不是git config --global core.askpass,你可以尝试:

git config --global core.askpass /usr/libexec/git-core/git-gui--askpass

(如GitExtensions issue 85评论)

请注意,您还可以使用凭证帮助程序来缓存密码:例如,请参阅“How to configure GIT on Windows 7 to push project to Google Code”。


0
投票

在Windows上,这对我有用:

git config --global credential.helper wincred

© www.soinside.com 2019 - 2024. All rights reserved.