mac 系統中,運行命令:git config -l,輸出中看到credential.helper=osxkeychain時,說明 git 密碼保存在 Keychain 中。 右上角搜索框內搜索 git,刪除保存的 git 帳號便可。html
git config -l
credential.helper=osxkeychain
出處:https://www.cnblogs.com/Mr-Rshare/p/10734260.htmlgit