gitmacositerm2iterm

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.


Solution

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