We were trying things out, and created an app password. We were then able to clone the repository after being prompted for the app password. However, after we revoked the created app password and created a new one, when we tried to clone, it just said
remote: Invalid credentials
This is on a Mac. How can we remove the previously stored app password, and what can we do to use the new one?
Hi @Daniel Ho and welcome to the community!
Git can be configured to use a credential manager. In this case, the first time you try to clone a Bitbucket Cloud repo you'll get asked for a password. After you provide the app password, it is stored in the credential manager and it is used the next time you clone, pull, or push to a Bitbucket Cloud repo.
For Mac, this credential manager is typically Keychain Access. You can confirm by running the following command on a terminal:
git config --system credential.helper
and
git config --global credential.helper
If the output of any of these two commands is osxkeychain, then Keychain Access is used. You can open Keychain Access on your Mac, search for any saved credentials for bitbucket.org, and remove them.
After you remove them, you should get asked for a password again the next time you clone, pull, or push to a Bitbucket Cloud repo.
In case the commands above indicate a different credential manager than osxkeychain, the credentials should be removed from the credential manager you use.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.