How to fix git "fatal: Authentication failed" issue after password change?

Problem:

I have the local git repository which is set up to track the remote git repository. I have changed the password of the remote git service. Then trying to push the change from local to the remote repository. I got the below issue.

fatal: Authentication failed for 'git.example.com/test.git

fatal: Authentication failed for "repo url"

Solution:

You have to update the remote repository password details in the credentials manager.