Skip to main content

~/christopher.loessl

Recursive git grep

I just figured out, that I want to make sure, that I never committed a key to my repository before publishing it, so what’s the easiest way to grep throw all commits in a git repository:

git grep USERNAME $(git rev-list --all)

If you are only interested in the commits you can run:

git log -G USERNAME