tmwoods
tmwoods

Reputation: 2413

'Not a git command' when trying to push

I'm brand new to Git and am having some issues when trying to push. Note that I have been successfully pushing all day. I was trying to store credentials and when trying to undo some work I think I made a typo and now when I try to push to my repo I get the following:

$ git push
git: 'credential---unset-all' is not a git command. See 'git --help'.

I was trying to clear saved credentials and was guessing at commands. Can anyone point me in the right direction?

Please note that performing the steps outlined here do not solve my problem.

Thanks!

Another note: notice how there is '---' (i.e. three dashes instead of a space and two dashes); I think that is part of this issue. It's like I modified the push command but I don't know how to remove it.

Upvotes: 0

Views: 1616

Answers (1)

tmwoods
tmwoods

Reputation: 2413

So I had somehow updated the global config file. I had added 'credential.helper' there, so I just had to remove it.

Typing git config -l showed the problem, then typing git config --unset credential.helper removed it from that list.

Upvotes: 1

Related Questions