I'm on Ubuntu and I typed
cat .bash_history | grep git and it returned
Binary file (standard input) matches
bash_history does exist and there are many lines in it that starts with
What causes the error? how can i fix it?
You can use
grep -a 'pattern' .
from man grep page.
Process a binary file as if it were text; this is equivalent to the --binary-files=text option.