In some cases after a password change, git starts to throw fatal errors like this one:
Error: Failed to execute "git ls-remote --tags --heads https://...", exit code of #128 fatal: Authentication failed for 'https://...'
You might notice that the URL from the error message can be opened in a browser without any issues, but in console you still get that error and git doesn’t ask for your new password no matter what you do.
What to do, what to do? … You need to run the next command in console and git will ask for your password and after that you can continue your work.
git ls-remote --tags --heads https://...
More info about the command you can find here git-ls-remote.
Be First to Comment