Searching Search in all files at a specific revision git grep $PATTERN $REVISION Find commits where the diff matches git log -S $PATTERN Find commits where the description matches git log --grep $PATTERN