git: 'credential-cache' is not a git command - Remove setting
I had same problem with error:
$ git push -u origin mastergit: 'credential-cache' is not a git command. See 'git --help'.Branch master set up to track remote branch master from origin.Everything up-to-date
So I decided to get rid of credential caching altogether, and I did it with in Git bash:
git config --global -e
then I found
[credential] helper = cache
and deleted it, saved file and after I tried again result was:
$ git pushEverything up-to-date
So error gone away.