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


This entry was posted in computer and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *