Search code examples
gitgithubcredentialsgithub-for-windowsgit-shell

Logging out or deleting credentials from git shell


How do I remove my credentials from git shell?

I am on a shared computer (Windows) that has remembered my git login details. I have tried closing git shell but when I reopen it I am still logged in (doesn't ask for my details when I do a git operation).

I'd prefer not to restart the computer, as this wouldn't be an option all the time for me.

Hopefully not a repeat of this: http://stackoverflow.com/questions/15381198/remove-credentials-from-git

  • I couldn't find the git-credential-cache daemon under "services" or "processes"
  • There was nothing about the credential helper in ~/.gitconfig

Solution

  • It turns out that the github app was somehow storing the credentials. I managed to log out by going to the GitHub desktop application (installed at the same time as git shell) and logging out from there.

    It would be nice to be able to do this from the command line, however.