LoginSignup
29
11

More than 5 years have passed since last update.

コミットメッセージでgit logを検索する

Posted at

コミットメッセージでgit logを検索する


$ git log --grep=検索文字列

コミットしたユーザーで検索する

$ git log --author=検索文字列

よく使うのでついでに。authorじゃなくてcommitterでもいいみたい。

記事の経緯

タイトルのような感じで検索すると

$ git log --grep 検索文字列

というのが結構出てくるが、実行したらエラーになったので調べた。
複数件出てきたので自分の環境?と思ったけど、Gitのドキュメントにも↑のように書いてあった。
Git - git-log Documentation
バージョンの差異とかでしょうか。

29
11
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
29
11