Skip to content

Instantly share code, notes, and snippets.

@cdario
Last active August 29, 2015 14:05
Show Gist options
  • Save cdario/1c1135ec3251e135f1b6 to your computer and use it in GitHub Desktop.
Save cdario/1c1135ec3251e135f1b6 to your computer and use it in GitHub Desktop.
find something in a file in all branches in git
git log -p -S 'method-class-variable-name-to-find' --all -- .\Namespace\FileToLookInto.php
git show a4283169fb5c4335ff916376d5dfc65c34b16f27 //commit number from previous command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment