ls command not working in Ubuntu 18.04

You have some alias for ls set in ~/.bashrc, or ~/.bash_aliases, or some other place using some git command.

You need to find and remove it.