Skip to content

Instantly share code, notes, and snippets.

@dpk dpk/git-scour
Created Jul 19, 2016

Embed
What would you like to do?
#!/bin/sh
# find a file by content from basically anywhere in your git history
# for when you think you lost something but hopefully not
(git stash list; git reflog) | awk '{print $1}' | xargs git grep "${@}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.