0
/* */
などのコメントのパターンをスキップしたいと思います。例えば、fの :/* * /間のコメントのパターンをスキップしたい
My name is
/*
alex
nice man
*/
alex is a nice man
コマンド:のみ
git grep "alex" f
が印刷:
alex is a nice man
私はGitのはgrepで使用することを好みます。
[編集ヘルプ](http://stackoverflow.com/editing-help)をご覧ください。 – Cyrus
私はあなたの答えを理解していない@Cyrus – Alex