Authentication failed to bitbucket

前端 未结 25 1229
佛祖请我去吃肉
佛祖请我去吃肉 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-23 00:08

    The issue was solved for me after changing the repository password, using no special characters (!"§$%&&).

    Obviously, win-credential-store and git and bitbucket's web interface use different character encodings.

    complete procedure:

    D:\shared\Project> cd /path/to/your/project
    D:\shared\Project> git init
    D:\shared\Project> git remote add origin https://bitbucket.org/USERNAME/project.git
    D:\shared\Project> git-credential-winstore.exe
    

    then

    D:\shared\Project> git push
    Failed to erase credential: Element not found
    fatal: Authentication failed for 'https://bitbucket.org/USERNAME/project.git/'
    

    After changing the passphrase:

    D:\shared\Project> git push
    Counting objects: 102, done.
    Delta compression using up to 8 threads.
    ... etc. ...
    

    Settings in Windows tresory:

    address: git:bitbucket.org (remeber the preceding "git:")
    user: USERNAME
    pass: old incl!"§§$%&, new without!"§$%%&/( (your passphrase!)
    

提交回复
热议问题