To fix the credential.helper error:
By default, git on Mac OS has osxkeychain as a credential helper, so when you invoked
git config --global credential.helper store
for the first time, it added the value and when you invoked it again, credential.helper then had multiple values set for it. So to clear the error, run
git config --unset-all credential.helper
and you can verify that it was restored to the default configuration by using
git config --get-all credential.helper
To setup git to not require a password:
I would suggest eschewing the credential helper method and to instead use the SSH protocol with public key authentication as a better practice.