gitbitbucketgit-tower

How to resolve fatal: Authentication failed for git [bitbucket]


I have been facing issue when i fetch or pull in any client. i.e "Tower" and Sourcetree. Everything was going smoothly , i did just update macos into Mojave.

But I always get

Error details: fatal: Authentication failed for 'https://username@bitbucket.org/sample/sample.git/'


Solution

  • You can try this solution:

    git remote add origin https://{username}:{password}@github.com/{username}/project.git