Search for all git commits (on all branches) that contain a specified file? -
i trying list git commits on branches on specific file exist. know full path file. not trying search commits mention file in commit message, rather commits contain file itself.
git rev-list --all | xargs -i commit \ bash -c 'git cat-file -e commit:myfile.py 2> /dev/null && echo commit'
Comments
Post a Comment