Search for commits that introduced or removed a string git log -Sstring | tig Grep in files with certain extensions git grep lorem -- '*.js'