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

Muhammad hamed Kamal picture Muhammad hamed Kamal · Oct 12, 2018 · Viewed 24.5k times · Source

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://[email protected]/sample/sample.git/'

Answer

flik picture flik · Oct 12, 2018

You can try this solution:

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