问题
I just mispelled command
git status
with
!git status
Console showed it started cloning last cloned repository into folder status...
My question is, what does this command mean and does it have any usage?
回答1:
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
来源:https://stackoverflow.com/questions/48748030/in-bash-what-does-exclamation-mark-before-command-means