

I see the "Manage your credentials" option, I click on it out of curiosity, then I click on "Windows Credentials", under "Generic Credentials", there is " git:", I click on it and there is the "Remove" option. The OP Lord Rixuel actually confirms in the comments it is a native Windows Credential Manager function which provides automatically (Git or not) the credentials: I would remove that particular credential helper from the config, as it stores credentials in plain text.


If git config credential-manager returns store, then Git uses the " store" mode, which saves the credentials to a plain-text file on disk, and they never expire. That git-credential-xxx executable is in usr/libexec/git-core or (for Windows) mingw64/libexec/git-core of your Git installation.Īs mentioned here, on MacOS, it should already be in /usr/local/git/bin/. This is better than fiddling with the Credential Manager of your OS. Printf "protocol=https\nhost=" | git-credential-osxkeychain erase Printf "protocol=https\nhost=" | git-credential-libsecret erase Printf "protocol=https\nhost=" | git-credential-manager-core erase Update 2020: " reject" is now deprecated, use erase: git credential-manager erase Īctually, whatever ' xxx' credential manager you are using (' xxx' being the result of git config credential.helper), you can do: printf "protocol=https\nhost=" | git-credential-xxx erase Update 2018: " delete" is now deprecated, use reject: Since its v1.3.0 (April 2016), it had a delete command to purge credentials. If not, set it up with: git config -global credential.helper manager-core First, user authentication has nothing to do with user.name and user.email git config.Īnd second, compared to the old answer " remove credentials from git", the latest Git for Windows uses Git Credential Manager (Git 2.9.2 => GCM 1.5.0).Ĭheck your config ( git config -l) and see if " manager" (or, more recently, 2020+: " manager-core") is registered there.
