Currently seeking new career opportunities in web development, particularly with Laravel, Hire Me

Fatal: Authentication failed (on git push)

David Carr


Table of Contents


Lost authentication from BitBucket resulting in invalid credentials. Pushing to BitBucket and received this response:

remote: Invalid credentials
fatal: Authentication failed for **repo**


  1. Go to and create a new app password

  2. Tick all the permissions required, copy the password

In terminal:

On an already-cloned project:

git remote set-url origin

To clone a new project:

git clone

Why is it happening?

Beginning March 1, 2022, you will no longer be able to use your Atlassian account password when using Basic authentication with the Bitbucket Cloud REST API or Git over HTTPS.

Solution has been provided from StackOverflow -

Laravel Modules Your Logo Your Logo Your Logo

Become a sponsor

Help support the blog so that I can continue creating new content!


My Latest Book

Modular Laravel Book - Laravel: The Modular way

Learn how to build modular applications with Laravel Find out more

Subscribe to my newsletter

Subscribe and get my books and product announcements.

Learn Laravel with Laracasts

Faster Laravel Hosting

© 2006 - 2024 DC Blog. All code MIT license. All rights reserved.