I got tired of typing my password for my bitbucket repo so I looked up a way to use ssh keys but happened upon the osx credential keychain. I thought I had installed it all
Try "git" status (with the quotes). If that works, you've aliased git to something else (probably alias git="git credential-osxkeychain"), and you should look in ~.profile to see if you can remove the alias.
(See the attached commentary for the debugging steps and eventual resolution).
To fix this I reinstalled git from http://git-scm.com/download/mac
and then added /usr/local/git/bin to the top of the file /etc/paths
As nneonneo said above, the reason is that files - git-credential-osxkeychain and git - are installed on wrong path (path, which is not default in /etc/paths, which is not on the first line in /etc/paths). Answers above didn't work for me. What exactly I tried : 1) change order of lines in file /etc/paths, but file /etc/paths is not available for changing on Mavericks 2) delete /usr/bin/git - this also didn't help me 3) mv /usr/bin/git /usr/bin/git_old ln -s /usr/local/git/bin/git /usr/bin/git also didn't.
So I decided to describe my way. I manually take files - git-credential-osxkeychain and git from /usr/local/git/bin and put in /usr/bin/git (cause /usr/bin/git - is the first path in /etc/paths). To get the path like /etc/paths in finder, just push Command+Shift+G and put path.