我想换成另一个 GitHub 用户。我删除了 github.com 钥匙串条目,还尝试通过命令行(https://help.github.com/articles/updating-credentials-from-the-osx-keychain)将其删除,但是当我尝试推送提交时使用user2
出现以下错误:
ERROR: Permission to user2/test-repo.git denied to user1.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我的 .gitconfig 包含以下内容:
[credential]
helper = osxkeychain
我该怎么做才能从中删除凭据user1
?