Is there a command for logging out of git? I'm turning my computer over to somebody else and don't want the git to be attached to my account in the terminal.
Remove your SSH keys from ~/.ssh
(or where you stored them).
Remove your user settings:
git config --global --unset user.name
git config --global --unset user.email
git config --global --unset credential.helper
Or all your global settings:
git config --global --unset-all
For newer versions of Git: (from @devDeejay's comment)
git config --global --unset credential.helper
Maybe there's something else related to the credentials store, but I always used git over SSH.