Changes

Jump to navigation Jump to search
Add some more search options
# Interpret PATTERN as a list of fixed strings (instead of regular expressions), separated by newlines, any of which is to be matched.
git rev-list --all | ( while read revision; do git grep -F 'wgAWSCredentials' $revision; done; )
</source>You can also search with <code>git log</code> to find commits of interest. Simply use the <code>--grep</code> option and add the <code>-i</code> option (short for <code>--regexp-ignore-case</code>) to make your pattern case-insensitive. Adding <code>--reverse</code> will show commits ordered from the beginning of time - so finding the earliest commit first. <code>git log --reverse --grep rocky -i</code> will show the commits from the start of the repository that have the word 'Rocky' in the commit message, without regard to case (ie. matching rocKy).  Similarly, you can use <code>git log -S"word"</code> or <code>git log -G"word"</code> Show commits (in log format) that match the non-case-sensitive regex 'Rocky'  <code>git log --reverse -G"Rocky" -i</code> Show the commit contents as a patch: <code>git log --reverse -G"Rocky" -i --patch</code>  See https://stackoverflow.com/questions/1337320/how-can-i-grep-git-commits-for-a-certain-word for more details, and the section below on git log.
==Ignore File Mode==

Navigation menu