Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot clone after revoking app password

Daniel Ho
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 5, 2024

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?

2 answers

1 accepted

1 vote
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 7, 2024

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

0 votes
Tbtc Dovgan
Banned
February 5, 2024

...

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events