Git error remote: Empty password

后端 未结 10 1530
别跟我提以往
别跟我提以往 2021-02-01 14:06

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
         


        
相关标签:
10条回答
  • 2021-02-01 14:43

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

    0 讨论(0)
  • 2021-02-01 14:43

    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.

    0 讨论(0)
  • 2021-02-01 14:44

    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.

    0 讨论(0)
  • 2021-02-01 14:50

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

    reference

    0 讨论(0)
  • 2021-02-01 14:54

    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.

    0 讨论(0)
  • 2021-02-01 15:00

    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.

    0 讨论(0)
提交回复
热议问题