I would like to change to another GitHub user. I removed the github.com Keychain entry and also tried to remove it via the command line (https://help.github.com/articles/updating-credentials-from-the-osx-keychain) but when I try to push commits using user2
the following error appears:
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.
My .gitconfig contains this:
[credential]
helper = osxkeychain
What can I do to remove the credentials from user1
?