think the case that /usr/local/git is not yet installed.
'function gcm' causes an endless loop because alias gcm is defined as 'git checkout master' in oh-my-zsh
unalias gcm and re-deine it