After change github password, connect VS Code for macOS to github, and get an error:
Bad credentials
- open ‘
Keychain access
’ - search ‘
github
’ - delete ‘
vscode-github.login
’ - connect github again
That’s all.
VS Code use Keychain access
to store credentials but not git config.
PS. git commandline to set credentials:
git config --global user.name "username"
git config --global user.email "your@mail.com"
git config --global credential.helper store
# input password first pull / push
git pull / push
# the credentials is store in ~/.git-credentials
# to remove credentials
rm ~/.git-credentials
# or use this command
git config --global --unset-all user.email
git config --global --unset credential.helper