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 Get File From a Different Branch Old School Way git checkout $FROM_BRANCH -- db/schema.rb Modern Git git restore source=$FROM_BRANCH db/schema.rb Index Neovim