Check first word, not previous word, for git cmd