In bash what does ! (exclamation mark) before command means?
In bash, if you type !
followed by a command name, it will substitute it with the last command in your history starting by that name.
So in your case !git
was substituted with git clone somerepo
so the whole line was translated to git clone somerepo status