Back

Explore Courses Blog Tutorials Interview Questions
+2 votes
2 views
in DevOps and Agile by (19.7k points)

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...

1 Answer

+1 vote
by (62.9k points)

To fix this on macOS, you can use

git config --global credential.helper osxkeychain

With your next Git action (pull, clone, push, etc.), a username and password prompt will appear.

For Windows, there is a different argument with almost the same command:

git config --global credential.helper wincred

Browse Categories

...