Github — Change Username/password on Mac

1. Check the existing setting

Andrea Huang
Jun 9, 2021

git config — list

Found the existing user name and email and found credential is managed by osxkeychain

2. Update existing user name and email

git config — global user.name <Your github account name>

git config — global user.email <Your github account email>

3. Erase keychain records so that

git credential-osxkeychain erase host=github.com protocol=https

4. when you commit the change, you will be prompt to input new password

--

--

Andrea Huang

我的Patrick是個6歲的小男孩。我想記錄下此時我想與他分享的感悟。雖然他此時未必能理解,但是等到適當的時機,他可以讀到來自媽媽當年的分享