Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove a bitbucket account from a MAC

Tags:

git

bitbucket

I have done something really dumb. I was in a hurry and since I needed to clone a project from my personal bitbucket account into my work laptop. So I did it using HTTPS and writing my password after the git clone....

The problem is that I can now always clone (and push) all that I want from my personal repository without put my password and I have no idea how to change this.

Just in case "MAC" is not understandable, I am on OSX.

like image 658
distante Avatar asked Jan 29 '26 15:01

distante


1 Answers

Have you previously set:

git config --global credential.helper osxkeychain

I think that's the default after brew install git. You can check with:

git config --list

Edit using KeyChain Access or at the command line:

git credential-osxkeychain erase

The GitHub documentation is nicer than Atlassian's in my opinion but the same things should apply.

https://help.github.com/articles/caching-your-github-password-in-git/

https://help.github.com/articles/updating-credentials-from-the-osx-keychain/

https://confluence.atlassian.com/bitbucketserver/permanently-authenticating-with-git-repositories-776639846.html

like image 125
9bO3av5fw5 Avatar answered Feb 01 '26 08:02

9bO3av5fw5



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!