ctrl-r status will walk back up your history looking at each time the command line contained status - just hit return when you find the command you need.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
To piggyback on the last one there, if you
history
:$ history
the output should be a numerical list of commands you've entered in the past, like so:
If I wanted to run
git status
again (ie, repeat command 10016 from history), I could do something like this:$ !10016
That's a great trick! Thanks!
You could also
pipe
history
too! Which could allow you togrep
(and more) within your history:$ history | grep "status"
:)
ctrl-r status will walk back up your history looking at each time the command line contained status - just hit return when you find the command you need.