Home > Software engineering >  Keychain username cant change
Keychain username cant change

Time:01-19

I have a problem with macOS keychain:

I'm using SourceTree app for GitHub projects.
when I push the project, everything is fine but SourceTree wants me to login with github account for push, so I logged in, but there is come error for username or password: I accidently type wrong username, but Apple already stored keychain for this.

I just go to keychain app delete the stored keychain for github then just opened the SourceTree, and still I'm getting the wrong username.
How can I delete the wrong username?

Storedwrongusername

CodePudding user response:

You should be able to erase that keychain entry:

Repeat the last command until it asks you for a username/password.

Check also your git remote -v (in the folder of your local repository) to ensure that the origin remote URL is:

  • an HTTPS one (starting with https://)
  • not including a username (https://[email protected]/...)

The OP seyfzone adds that SourceTree itself has the account:

SourceTree > Preferences > Advanced > Delete Account 
  •  Tags:  
  • Related