I use BitBucket and had to change my password because it was compromised.
git pull
remote: Invalid username or password. If
I clicked on this button and it worked for me.
Here is the screenshot