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/'
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.
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:
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.
All done. Hope to help you.
Tools->Options->Git-> Update Embedded Git.
I did have to do this twice because there were issues extracting the first download.
reinstall git for windows, thats worked for me.
Git v2.12.2.2 released on 2017-04-05 fixed the issue for me.
You can try:
It worked for me in a pinch, but I do agree that it is not the best solution.