Authentication failed to bitbucket

前端 未结 25 932
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-22 23:29

I\'m trying to push my project via the https protocol on bitbucket using sourcetree.
But I can\'t connect to bitbucket with my login and password (which work on the webs

相关标签:
25条回答
  • 2020-12-22 23:49

    I tried almost all the solution given here.

    Which worked for me is I opened the GIT GUI and in that tried to Push. Which ask for the credentials, enter correct userid and password it will start working again.

    0 讨论(0)
  • 2020-12-22 23:49

    I was using below command

    git clone -b branch-name https://<username>@bitbucket.org/<repository>.git
    

    Issue got resolved after adding password with username (see below command):

    git clone -b branch-name https://<username>:<password>@bitbucket.org/<repository>.git
    
    0 讨论(0)
  • 2020-12-22 23:51

    I Reverted to sourcetree 2.0

    This solved the bug for me.

    https://www.sourcetreeapp.com/download-archives

    0 讨论(0)
  • 2020-12-22 23:53

    None of the above worked for me - the problem lay in my Sourcetree Preferences. In the Network tab, I had a setting there for 'Default usernames for URLs which do not include one:'. The username was incorrect where I had entered it incorrectly previously - I had set it to my email rather than username. I highlighted the entries and clicked Remove for both. Then I returned to my repository page and clicked Push again. On pushing, it asked me for full username and password, which I was able to enter correctly - the push then finally worked.

    0 讨论(0)
  • 2020-12-22 23:54

    I solved the issue by editing the stored value in the OS X Keychain: I looked for "bitbucket" (as Application password) and changed the value.

    Then on Sourcetree, when I tried to push, I directly had to re-enter my new password.

    0 讨论(0)
  • 2020-12-22 23:54

    For Mac Users. There was a default account set on the Source tree which does not allow me to clone the URL because my current URL was of different bitbucket account. So, It shows the invalid source path and I then click on Advance Options and found Authentication failed to your_clone_url. So, follow these steps

    1. Select Source Tree. Go to SourceTree menu -> Select Preferences.
    2. It will show Accounts window. Then Choose Accounts

    Here it will show list of your added accounts. Just click on Add button from the bottom and add your new bitbucket account details. It will list you account under Accounts tab. You can also set default account by clicking on Set Default .. button from bottom. Now all is done.

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