Show commits and diffs where foo_bar was introduced or removed from the code git log --oneline -S'foo_bar' -p Get list of modified files between two changesets git diff --name-status <SHA1> <SHA2> git show --name-only