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条回答
乱世女痞
2楼-- · 2019-03-09 16:36

I'm using git(2.12.2) 64-bit on Windows 10. My solution is simply close the login window which you have to type account and password, and a SSh window will pop out, then you type your password.

查看更多
贼婆χ
3楼-- · 2019-03-09 16:37

This issue mentioned in link and comments in that - remove password file solved this problem for me

reference

查看更多
Viruses.
4楼-- · 2019-03-09 16:40

I don't know which operating system you're using but in Windows there was a bug in the Git Credential Manager for Windows (GCM), v1.9, which I believe was bundled with git v2.12.1 for Windows.

It resulted in a "remote: empty password" error when trying to authenticate to BitBucket.

The issue was fixed in version 1.10 of GCM. The latest GCM installer can be found at: https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases

The details of the issue can be found at: https://github.com/Microsoft/Git-Credential-Manager-for-Windows/issues/399 The issue was raised on 24 March 2017, roughly about the time you started seeing your authentication problem.

查看更多
不美不萌又怎样
5楼-- · 2019-03-09 16:46

If you've tried all the possibilities and the problem persists, try this:

  1. Close SourceTree

  2. Click on User Accounts in Control Panel.

  3. In the left-hand list of links, click Manage Your Credentials.

  4. When the Manage Your Credential page opens, it shows your Web Credentials. Click on the "Windows Credentials" button.

  5. In the list (Windows credentials), look for entries that relate to SourceTree. Remove all these entries. Be very careful in this step.

  6. And Please delete this folder: - C:\Users\AppData\Local\Atlassian

    If you can not delete, restart your computer

  7. Uninstall SourceTree

  8. Install SourceTree again

Note that the location of the Git installation may influence this procedure.

That was the only method that works for me. I'm using Windows 8.1 64-bit.

查看更多
登录 后发表回答