Git

Tips

Full-text Search on All Revisions

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

File Name Search on All Revisions

git log --all --name-only --pretty=format: | grep -E 'pattern1|pattern2'

Find Branch from Commit Hash

git branch --contains $COMMIT_HASH