git: 'credential-cache' is not a git command - Remove setting

Bradley Flood picture Bradley Flood · Nov 19, 2013 · Viewed 30.7k times · Source

After attempting to setup git credential cache on Windows 7 I would now like to scrap the idea and remove this error message and setting from git.

git: 'credential-cache' is not a git command.

This related question shows how to fix this error by installing additional software to make the credential caching work -- I however wish to remove this setting all together.

How do I do this?

I have tried: git config --global --remove-section credential-cache and variations thereof. Also it does not exist in my .git/config file either.

Answer

Bradley Flood picture Bradley Flood · Dec 6, 2013

Running git config --global -e allowed me to remove the offending config setting from the global git config.

[credential]
helper = winstore