How can I show line numbers by default with the ‘git grep’ command?

From the git grep manual:

Options:

   -n, --line-number
       Prefix the line number to matching lines.

Configuration:

   grep.lineNumber
       If set to true, enable -n option by default.

To turn on globally: git config --global grep.lineNumber true

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)