Thursday, May 11, 2023

fatal: Authentication failed git resolution

 If you have changed your certificate of your git repository, you will receive the following error message.

fatal: Authentication failed for for 'https://bitbucket.*****/***/usermgt*.git/'

You can follow following steps to resolve the issue.

1. Retrieve the remote URL

git remote -v

2. Remove the remote URL

git remote rm origin

3. Add URL as new remote URL

git remote add origin  https://bitbucket.*****/***/usermgt*.git

4. Make changes and push

git push origin master