Git error remote: Empty password
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:
- Click on User Accounts in Control Panel.
- In the left-hand list of links, click Manage Your Credentials.
When the Manage Your Credential page opens, it shows your Web Credentials. Click on the "Windows Credentials" button.
In the list(Windows Credentials), look for entries that start with "git:http". Remove these entries.
- And Please delete a file - C:\Users\\AppData\Local\Atlassian\SourceTree\passwd
- 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.
Admin
Updated on June 02, 2022Comments
-
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 about 7 yearsThis worked for me too, but my password is now in plain text in the
.git/config
file -
Sanjay Karia about 7 yearsThat helped. Seems it is an issue with the Git Credential Manager for Windows.
-
Aram Tchekrekjian almost 7 yearsWooow! I've never thought closing the credential manager pop-up window. You are awesome man, Thanks!
-
Ringo almost 7 yearshow can something as important as login be broken?
-
csalmeida over 6 yearsStrange 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 over 6 yearsCan't believe it - but it worked... I wasted like an hour on this
-
Paul Ghiran over 6 yearsI added my account manually here without deleting anything and it worked. Thank you though
-
Rey Norbert Besmonte about 6 years30 mins ago, "it doesn't work, But why?". Me after seeing this solution, "it works, But why?" OMG