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

Popular posts from this blog

java - Solr query version issue: Invalid version or the data in not in 'javabin' format -

Hard vs. Soft Water: What's The Difference?

The Ten Most Livable Cities In The World