計算機科学のブログ

ほしい物リスト

Git - Searching Git Repositories: Git a Grep - log, grep, blame, S

Head First Git: A Learner’s Guide to Understanding Git from the Inside OutRaju Gandhi(著)、 O’Reilly Mediaの Chapter 7.(Searching Git Repositories: Git a Grep)、WHO DOES WHAT?(595/715)の解答を求めてみる。

log -grepSearches commit messages only.
grepSearches all the tracked files for a piece of text.
blameShows the commit and author information for each line in a file.
log -SSearches the diffs of all commits.
checkoutMoves HEAD to the specified commit.
log -GDisplays all the commits where the line that includes that text was changed in some way.