Git error remote: Empty password

16,564

Solution 1

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.

Solution 2

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.

Solution 3

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.

Solution 4

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.

Solution 5

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

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

Share:
16,564
Admin
Author by

Admin

Updated on June 02, 2022

Comments

  • Admin
    Admin almost 2 years

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

    git clone https://[email protected]/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://[email protected]/naor_shoyhat/hello-world.git/'
    
  • Ben
    Ben about 7 years
    This worked for me too, but my password is now in plain text in the .git/config file
  • Sanjay Karia
    Sanjay Karia about 7 years
    That helped. Seems it is an issue with the Git Credential Manager for Windows.
  • Aram Tchekrekjian
    Aram Tchekrekjian almost 7 years
    Wooow! I've never thought closing the credential manager pop-up window. You are awesome man, Thanks!
  • Ringo
    Ringo almost 7 years
    how can something as important as login be broken?
  • csalmeida
    csalmeida over 6 years
    Strange fix but it works. If you click cancel on the first time you get asked for a password you will get a window with the exact same appearance, just type your correct password and it should work. Thanks Shin-Bang Tsai
  • ilans
    ilans over 6 years
    Can't believe it - but it worked... I wasted like an hour on this
  • Paul Ghiran
    Paul Ghiran over 6 years
    I added my account manually here without deleting anything and it worked. Thank you though
  • Rey Norbert Besmonte
    Rey Norbert Besmonte about 6 years
    30 mins ago, "it doesn't work, But why?". Me after seeing this solution, "it works, But why?" OMG