This worked for me : Deleting your credentials via the command line
$ git credential-osxkeychain erase
host=github.com
protocol=https
> [Press Return]
If it's successful, nothing will print out. To test that it works, try and clone a private repository from GitHub.com. If you are prompted for a password, the keychain entry was deleted.