Accidentally broke/remapped git command line command

Posted by Kevin Teh on Super User See other posts from Super User or by Kevin Teh
Published on 2012-12-07T02:58:40Z Indexed on 2012/12/07 11:09 UTC
Read the original article Hit count: 265

Filed under:
|
|

I think I accidentally remapped my git command to automatically include the subcommand credential-osxkeychain on the command line while trying to install a git credential-helper. When I enter

$git

it now displays

Usage: git credential-osxkeychain <get|store|erase>

How can I fix it?

Entering

$alias

returns

alias rvm-restart='rvm_reload_flag=1 source '\''/Users/teh/.rvm/scripts/rvm'\'''

Entering

$which git

returns

/usr/bin/git

I think the problem may have began when I entered a command to move git-credential-osxkeychain into

/usr/bin/git

instead of

/usr/bin/

© Super User or respective owner

Related posts about git

Related posts about bash