Git error remote: Empty password

2019-03-09 15:55发布

I'm trying to clone my git repo from bitbucket, and when I enter this command:

git clone https://naor_shoyhat@bitbucket.org/naor_shoyhat/hello-world.git

The bash then prompts me a window with areas to enter username and password.

I enter them and then I receive this error:

remote: Empty password
fatal: Authentication failed for 'https://naor_shoyhat@bitbucket.org/naor_shoyhat/hello-world.git/'

10条回答
Rolldiameter
2楼-- · 2019-03-09 16:24

If a pop up window ask for username and password close it, then introduce the password in the commandline.

It seems that is a bug on windows that sends an empty password to bitbucket. I use windows 10.

查看更多
仙女界的扛把子
3楼-- · 2019-03-09 16:25

I know my answer is very late. But I am going to explain to fix this problem on windows step by step. After upgrading SourceTree version 2.1.10, we can see like that.

SourceTree stores credentials in the Windows credential manager. To see and remove them, do the following:

  1. Click on User Accounts in Control Panel.
  2. In the left-hand list of links, click Manage Your Credentials.
  3. When the Manage Your Credential page opens, it shows your Web Credentials. Click on the "Windows Credentials" button. enter image description here

  4. In the list(Windows Credentials), look for entries that start with "git:http". Remove these entries.

  5. And Please delete a file - C:\Users\\AppData\Local\Atlassian\SourceTree\passwd
  6. Source tree app re-open and work on this. If the app needs password, you can input.

All done. Hope to help you.

查看更多
老娘就宠你
4楼-- · 2019-03-09 16:25

Tools->Options->Git-> Update Embedded Git.

I did have to do this twice because there were issues extracting the first download.

查看更多
SAY GOODBYE
5楼-- · 2019-03-09 16:27

reinstall git for windows, thats worked for me.

查看更多
6楼-- · 2019-03-09 16:28

Git v2.12.2.2 released on 2017-04-05 fixed the issue for me.

查看更多
再贱就再见
7楼-- · 2019-03-09 16:30

You can try:

git clone https://naor_shoyhat:<password>@bitbucket.org/naor_shoyhat/hello-world.git

It worked for me in a pinch, but I do agree that it is not the best solution.

查看更多
登录 后发表回答