Mastodon

Search your git history

Wonder how to search your entire git repo using grep? This command will work:

git grep <regexp> $(git rev-list --all)

It search and returns every file contains that regular expression in your repo. Certainly
it is slow, but sometime you will have to do it.