I am on mac OS unlike this post:
I have password conf
I got the same error and I solved this by :
Apply command from cmd (run as administrator)
git config --system --unset credential.helper
And then I removed gitconfig file from C:\Program Files\Git\mingw64/etc/ location (Note: this path will be different in MAC like "/Users/username")
git pull
or git push
, it asked me for username and password. applying valid username and password and git command working.hope this will help you...