cooervo cooervo -4 years ago 184
Git Question

MacOSX terminal which git return error: zsh: bad option: -l

I have noticed some problems lately on my git and I want to uninstall it, when I try to identify the path with:

which git

I always get the following error:

zsh: bad option: -l

any ideas what this error might be indicating?

I have tried on iterm and on default terminal but get always the same error.

Answer Source

Check if your .bashrc or .bash_profile (maybe .zshrc) has an alias on which command.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download