在CentOS上获取“远程:空密码致命:身份验证失败”,如何存储Git信用,以便终端不提示?

时间:2017-03-31 16:21:16

标签: linux git centos

服务器: CentOS版本5.11(最终版)

我的服务器上有一个项目,我在BitBucket上创建了一个新的仓库。

根据bitbucket,我试过

git remote add origin https://user@bitbucket.org/username/projectname.git
git push -u origin master

然后我被提示

Password for 'https://username@bitbucket.org':

我输入了密码,但它给了我这个错误。

remote: Empty password
fatal: Authentication failed for 'https://user@bitbucket.org/username/projectname.git/'

我搜索了很多但找不到任何解决方案。

如何以及以何种格式存储.git/config中的Git信用卡,以便终端在推或拉时不会提示?

PS:

我的bitbucket帐户在其他Ubuntu服务器上运行正常。

0 个答案:

没有答案