Solved: How do I update the password for Git?


I’m using BitBucket with Xcode and Git for version control, and recently I changed all of my passwords (thanks Adobe!).
Unsurprisingly, I’m no longer able to push my local commits to my repository on BitBucket (Authentication failed for 'https://______.git'), but I’m forgetting how to update the cached password on my iMac. Somehow I’ve been unable to find it on Google or Stack Overflow, though it seems to me it should be rather straightforward…

Best Answer:

To fix this on macOS, you can use
A username and password prompt will appear with your next Git action (pull, clone, push, etc.).
For Windows, it’s the same command with a different argument:

If you have better answer, please add a comment about this, thank you!