Skip to content

Instantly share code, notes, and snippets.

@sephiroth74
Created March 25, 2015 23:12
Show Gist options
  • Save sephiroth74/0e749c152cf1d87a1042 to your computer and use it in GitHub Desktop.
Save sephiroth74/0e749c152cf1d87a1042 to your computer and use it in GitHub Desktop.
Git search string in all files across all commits
function git_find_files() {
if [ "$#" -ne 1 ]
then
echo "Usage: git_find_files string"
return
fi
git log -p -S$1 --pickaxe-all --full-diff
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment