Search code examples
gitcachingconfig

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


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.


Solution

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

    [credential]
    helper = winstore