Git - Searching Git Repositories: Git a Grep - log, grep, blame, S
Head First Git: A Learner’s Guide to Understanding Git from the Inside Out、 Raju Gandhi(著)、 O’Reilly Mediaの Chapter 7.(Searching Git Repositories: Git a Grep)、WHO DOES WHAT?(595/715)の解答を求めてみる。
| log -grep | Searches commit messages only. |
| grep | Searches all the tracked files for a piece of text. |
| blame | Shows the commit and author information for each line in a file. |
| log -S | Searches the diffs of all commits. |
| checkout | Moves HEAD to the specified commit. |
| log -G | Displays all the commits where the line that includes that text was changed in some way. |